/* Snack CSS - Custom Styles für Gewinnspiel Pro */

/* Auth Pages */
:root {
    --primary-color: #21B573;
    --secondary-color: #1e9d63;
    --accent-color: #34d399;
    --dark-bg: #0f172a;
    --dark-card: #1e293b;
    --dark-border: #334155;
}

.sidebar .sidebar-body {
    display: flex;
    flex-direction: column;
}

.sidebar .sidebar-body > .nav {
    flex: 1 0 auto;
}

.sidebar-organization {
    padding: 0 14px 16px;
}

.sidebar-organization-toggle {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 3px;
    background: rgba(15, 23, 42, 0.46);
    color: #e5e7eb;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    text-align: left;
}

.sidebar-organization-toggle:hover,
.sidebar-organization-toggle[aria-expanded="true"] {
    border-color: rgba(33, 181, 115, 0.55);
    background: rgba(33, 181, 115, 0.1);
}

.sidebar-organization-chevron {
    width: 18px;
    height: 18px;
}

.sidebar-organization-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.sidebar-organization-label {
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.1;
}

.sidebar-organization-name {
    color: #f8fafc;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-organization-chevron {
    color: #94a3b8;
    flex: 0 0 18px;
}

.sidebar-organization-menu {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    margin: 0 0 6px;
    padding: 5px;
    border-radius: 3px;
    border-color: rgba(148, 163, 184, 0.25);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.sidebar-organization-menu .dropdown-header {
    padding: 7px 9px;
    font-size: 11px;
    letter-spacing: 0.03em;
}

.sidebar-organization-menu .dropdown-divider {
    margin: 5px 0;
}

.sidebar-organization-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 9px;
    border-radius: 2px;
    font-size: 13px;
    white-space: normal;
    line-height: 1.25;
}

.sidebar-organization-item .icon-sm {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

body.auth-page {
    background: var(--dark-bg);
    min-height: 100vh;
    font-family: 'Roboto', sans-serif;
    color: white;
}

.auth-card {
    background: var(--dark-card);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    overflow: hidden;
    border: 1px solid var(--dark-border);
}

.auth-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    text-align: center;
}

.auth-header-logo {
    height: 50px;
    margin-bottom: 1rem;
}

.auth-link {
    color: #94a3b8;
    text-decoration: none;
}

.auth-link-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
}

.auth-info-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: middle;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-muted-auth {
    color: #94a3b8;
}

/* Buttons - Auth Pages Only */
.auth-page .btn-primary {
    border-radius: 50px;
    padding: 12px 30px;
}

/* Form Controls - Auth Pages Only */
.auth-page .form-control {
    border-radius: 10px;
    border: 2px solid var(--dark-border);
    padding: 12px 16px;
    transition: all 0.3s ease;
    background: var(--dark-bg);
    color: white;
}

.auth-page .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(33, 181, 115, 0.25);
    background: var(--dark-bg);
    color: white;
}

.auth-page .form-control::placeholder {
    color: #94a3b8;
}

.auth-page .form-label {
    color: white;
    font-weight: 500;
}

.auth-page .form-check-label {
    color: white;
}

.auth-page .form-check-input {
    background-color: var(--dark-bg);
    border: 2px solid var(--dark-border);
}

.auth-page .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.auth-page .form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(33, 181, 115, 0.25);
}

/* Input Group Icons - Auth Pages */
.input-group-text-dark {
    background: #0f172a;
    border: 2px solid #334155;
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: var(--primary-color);
}

.input-icon-green {
    width: 18px;
    height: 18px;
    stroke: var(--primary-color);
}

/* Input nach Icon */
.input-group .form-control {
    border-left: none;
    border-radius: 0 10px 10px 0;
}

/* Role Cards */
.role-card {
    background: var(--dark-bg);
    border: 2px solid var(--dark-border);
    border-radius: 15px;
    padding: 1.5rem;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.role-card:hover {
    border-color: var(--primary-color);
    background: rgba(16, 185, 129, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.role-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.role-icon-lucide {
    width: 24px;
    height: 24px;
    color: white;
}

.role-content {
    flex: 1;
}

.role-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.role-description {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0;
}

.pending-approval-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(33, 181, 115, 0.14);
    color: var(--primary-color);
}

.pending-approval-icon svg {
    width: 36px;
    height: 36px;
}

.pending-approval-mail {
    border: 1px solid var(--dark-border);
    border-radius: 10px;
    background: var(--dark-bg);
    padding: 14px;
}

.pending-approval-mail span,
.pending-approval-mail strong {
    display: block;
}

.pending-approval-mail span {
    color: #94a3b8;
    font-size: 0.85rem;
}

.pending-approval-mail strong {
    color: #ffffff;
    margin-top: 2px;
}

/* Sidebar */
.sidebar-logo {
    height: 35px;
    width: auto;
}

/* Phase Icons */
.phase-icon-lg {
    width: 80px;
    height: 80px;
}

.phase-icon-sm {
    width: 40px;
    height: 40px;
    min-width: 40px;
}

/* Empty State Icon */
.empty-state-icon {
    width: 48px;
    height: 48px;
}

/* Alert Small */
.alert-sm {
    font-size: 0.875rem;
}

/* Cursor Pointer */
.cursor-pointer {
    cursor: pointer;
}

/* Scrollable List */
.scrollable-list {
    max-height: 250px;
    overflow-y: auto;
}

/* Drag Handle */
.drag-handle {
    cursor: move;
}

/* Legal Content */
.legal-content .container {
    max-width: 1200px;
}

.contact-info {
    background: var(--dark-bg-card);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
}
