/* === GLOBALE STYLES === */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Specifikke body styles per side */
body.login-page {
    background-color: #f4f7f9;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
}

body.dashboard-page {
    background-color: #121212;
    color: #e0e0e0;
    padding: 20px;
}


/* === LOGIN SIDE === */
.login-container {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
    max-width: 350px;
}

.login-container h1 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
    border: none; /* Fjern generel h1 border for login */
}

.login-container p {
    color: #666;
    margin-bottom: 25px;
}

.login-container input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #fff;
    color: #333;
}

/* Genbrug knap-styling men tilpas til login */
.login-container button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 10px; /* Lidt luft før knap */
}

.login-container button:hover {
    background-color: #0056b3;
}

.login-container .error {
    color: #d93025;
    margin-top: 15px;
    min-height: 20px;
}

/* === DASHBOARD SIDE === */
.dashboard-container {
    max-width: 900px;
    margin: 40px auto; /* Mere luft i toppen */
    padding: 30px; /* Mere padding */
    background-color: #1e1e1e;
    border-radius: 12px; /* Lidt rundere hjørner */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.dashboard-container h1, .dashboard-container h2, .dashboard-container h3 {
    color: #ffffff;
    border-bottom: 1px solid #444; /* Lidt tydeligere linje */
    padding-bottom: 10px;
    margin-bottom: 20px; /* Mere luft under overskrifter */
}
.dashboard-container h1 { font-size: 26px; border: none; text-align: center; margin-bottom: 10px;} /* Centreret hovedtitel */
.dashboard-container h2 { font-size: 20px; margin-top: 35px; } /* Lidt mindre H2 */
.dashboard-container h3 { font-size: 16px; border-bottom: none; margin-bottom: 12px; color: #ccc;} /* Lidt mindre H3 */


.dashboard-container p {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 15px; /* Standard bundmargin for p */
}
/* Specifik styling for logget ind som */
.dashboard-container p:has(> #user-email) {
    text-align: center;
    margin-bottom: 25px;
    font-size: 14px;
    color: #aaa;
}


.logout {
    padding: 8px 12px; /* Lidt mindre logud knap */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    background-color: #444; /* Mørkere grå */
    color: #ccc;
    transition: background-color 0.2s;
}
.logout:hover {
    background-color: #555;
    color: white;
}

.status {
    font-style: italic;
    font-size: 13px; /* Lidt mindre status tekst */
    margin-top: 12px;
    min-height: 1.2em; /* Giver plads så layout ikke hopper */
    color: #aaa; /* Standard farve for status */
}
.status.success { color: #66BB6A; } /* Lysere grøn for succes */
.status.error { color: #EF5350; } /* Lysere rød for fejl */


/* === TAB-NAVIGATION === */
.tab-navigation {
    display: flex;
    flex-wrap: wrap; /* Tillad ombrydning på små skærme */
    border-bottom: 1px solid #444; /* Lidt tydeligere */
    margin-bottom: 25px; /* Mere luft under */
    padding-bottom: 8px; /* Lidt luft under tabs */
    gap: 8px; /* Mellemrum mellem tabs */
}

.tab-link {
    padding: 10px 15px;
    cursor: pointer;
    background-color: #252525; /* Lidt baggrund */
    border: 1px solid #333;
    border-bottom: 3px solid #333;
    color: #b0b0b0;
    font-weight: bold;
    font-size: 14px; /* Lidt mindre */
    border-radius: 6px 6px 0 0; /* Kun runde hjørner i toppen */
    transition: all 0.2s ease-in-out;
    text-align: center;
    margin-right: 0; /* Fjernet - bruger gap */
    margin-bottom: 0; /* Fjernet */
}

.tab-link:hover {
    background-color: #333;
    color: #ffffff;
    border-bottom-color: #555;
}

.tab-link.active {
    background-color: #1e1e1e; /* Match container baggrund */
    color: #66BB6A; /* Lysere grøn for den aktive fane */
    border-color: #444;
    border-bottom-color: #66BB6A;
}

/* Flyt logud-knap til højre */
.tab-navigation .logout {
    margin-left: auto;
    align-self: center;
    border-radius: 5px; /* Fuld border-radius for logud */
}

/* === TAB-INDHOLD === */
.tab-content {
    display: none; /* Skjult som standard */
    padding-top: 10px; /* Lidt luft over indholdet */
}

.tab-content.active {
    display: block; /* Vises når den er aktiv */
}

/* === GENEREL STYLING AF BOKSE OG KNAPPER === */
.action-box {
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    background-color: #252525;
}

.danger-zone {
    border-color: #EF5350; /* Lysere rød */
    background-color: rgba(239, 83, 80, 0.05); /* Meget let rødlig baggrund */
}
.danger-zone h3 { color: #EF5350; } /* Rød overskrift i farezone */

/* Generel knap-styling */
.action-btn, .approve-btn, .reject-btn, .danger-btn, .secondary-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: opacity 0.2s, background-color 0.2s;
    margin-right: 10px; /* Lidt luft mellem knapper i grupper */
}
.action-btn:last-child, .approve-btn:last-child, .reject-btn:last-child, .danger-btn:last-child, .secondary-btn:last-child {
    margin-right: 0;
}


.action-btn:disabled, .approve-btn:disabled, .reject-btn:disabled, .danger-btn:disabled, .secondary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Specifikke knap-farver */
.action-btn { background-color: #2979FF; color: white; } /* Lidt lysere blå */
.action-btn:hover:not(:disabled) { background-color: #2962FF; }

.approve-btn { background-color: #4CAF50; color: white; } /* Grøn */
.approve-btn:hover:not(:disabled) { background-color: #388E3C; }

.reject-btn { background-color: #f44336; color: white; } /* Rød */
.reject-btn:hover:not(:disabled) { background-color: #d32f2f; }

.danger-btn { background-color: #d32f2f; color: white; } /* Mørkere rød */
.danger-btn:hover:not(:disabled) { background-color: #b71c1c; }

.secondary-btn { background-color: #555; color: white; } /* Grå */
.secondary-btn:hover:not(:disabled) { background-color: #666; }


/* === ANSØGNINGSKORT (INFLUENCER & WORLD FIRST) === */
.application-card {
    border: 1px solid #444;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    background-color: #2c2c2c;
}
.application-card p { margin: 0 0 8px 0; color: #ccc; font-size: 14px; } /* Lidt mindre tekst */
.application-card p strong { color: #e0e0e0; }
.application-card a { color: #66BB6A; text-decoration: none; } /* Lysere grøn */
.application-card a:hover { text-decoration: underline; }
.button-group { display: flex; gap: 10px; margin-top: 12px; }

/* World First specifik info */
.wf-sort-info {
    font-size: 13px; /* Lidt større */
    font-style: italic;
    color: #aaa;
    margin-bottom: 20px; /* Mere luft */
    text-align: center; /* Centreret */
}
.wf-card-info { /* Tilføjet klasse til WF kort info */
    font-size: 14px;
}
.wf-card-info .rarity { /* Styling for rarity */
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    font-size: 12px;
    /* Farver kan tilføjes baseret på rarity-klasse */
    background-color: #555;
    color: #eee;
    display: inline-block; /* Sørg for at baggrund fylder */
    vertical-align: middle; /* Juster lodret */
}
/* Eksempel på farver (kan udvides) */
.wf-card-info .rarity.rarity-EX { background-color: gold; color: #333; }
.wf-card-info .rarity.rarity-CR { background-color: #d32f2f; } /* Brug samme rød som danger */
.wf-card-info .rarity.rarity-EN { background-color: orange; }
.wf-card-info .rarity.rarity-VU { background-color: #2979FF; } /* Brug blå */
.wf-card-info .rarity.rarity-NT { background-color: #777; }
.wf-card-info .rarity.rarity-LC { background-color: #66BB6A; } /* Brug lys grøn */


/* === BRUGER ADMINISTRATION === */
.user-search-box input[type="text"] {
    width: calc(100% - 120px); /* Lidt mere plads til knap */
    padding: 10px 12px; /* Justeret padding */
    margin-bottom: 0;
    border: 1px solid #555;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #333;
    color: #e0e0e0;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
    font-size: 14px; /* Match knap font */
}

.user-search-box button {
    width: auto;
    padding: 10px 15px;
    display: inline-block;
    vertical-align: middle;
}

#user-details-box {
    margin-top: 25px; /* Mere luft */
    padding: 25px; /* Mere padding */
}

.user-detail-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #444; /* Lidt tydeligere */
    font-size: 14px; /* Match resten */
    display: flex; /* Brug flex for bedre alignment */
    align-items: flex-start; /* Start alignment */
}
.user-detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.user-detail-item strong {
    color: #e0e0e0;
    display: inline-block;
    width: 150px; /* Fast bredde for labels */
    font-weight: 600; /* Lidt federe */
    flex-shrink: 0; /* Sørg for at label ikke skrumper */
    margin-right: 10px; /* Luft mellem label og værdi */
}
.user-detail-item span, .user-detail-item a {
    color: #ccc;
    word-break: break-word; /* Bedre orddeling end break-all */
    flex-grow: 1; /* Lad værdien fylde resten */
}
.user-detail-item a {
    color: #66BB6A;
    text-decoration: none;
}
.user-detail-item a:hover {
    text-decoration: underline;
}

/* Styles til redigeringsfelter og knapper i brugerdetaljer */
.user-edit-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #555; /* Lidt tydeligere */
}
.user-edit-section label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #ccc;
    font-size: 13px; /* Lidt mindre label */
}
.user-edit-section input[type="text"],
.user-edit-section input[type="number"] {
     width: calc(100% - 135px); /* Juster plads til knap */
     padding: 8px 10px; /* Lidt mindre padding */
     margin-right: 10px;
     border: 1px solid #555;
     border-radius: 4px;
     background-color: #333;
     color: #e0e0e0;
     display: inline-block;
     vertical-align: middle;
     margin-bottom: 12px; /* Luft nedad */
     font-size: 14px;
}
.user-edit-section button {
    width: auto;
    padding: 8px 12px;
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 12px;
    font-size: 13px; /* Lidt mindre knap */
}


/* === MODAL TIL BEKRÆFTELSE === */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Lidt mørkere baggrund */
    display: none; /* Skjult som standard */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0; /* Start usynlig for fade-in */
    transition: opacity 0.2s ease-in-out;
}
.modal-backdrop.visible { /* Ny klasse til at vise modal */
    display: flex;
    opacity: 1; /* Fade ind */
}

.modal-content {
    background-color: #2c2c2c;
    padding: 30px; /* Mere padding */
    border-radius: 10px; /* Lidt rundere */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    max-width: 450px; /* Lidt bredere */
    width: 90%;
    border-top: 5px solid #d32f2f; /* Tydeligere rød topkant */
}
/* Ændre topkant farve hvis knappen ikke er 'danger' */
.modal-content.safe-action {
    border-top-color: #4CAF50; /* Grøn topkant for sikre handlinger */
}


.modal-content h2 {
    margin-top: 0;
    border-bottom: none; /* Fjern bundlinje i modal */
    color: #e0e0e0;
    font-size: 20px; /* Lidt større */
    margin-bottom: 15px;
}

.modal-content p {
    color: #ccc;
    line-height: 1.7; /* Lidt mere luft */
    margin-bottom: 25px; /* Mere luft før knapper */
}

.modal-content .button-group {
    justify-content: flex-end; /* Knapper til højre */
    margin-top: 20px;
}

/* === BATCH UPLOAD FILE INPUTS === */
.action-box input[type="file"] {
    display: block;
    margin: 15px 0;
    padding: 10px;
    background-color: #333;
    border: 1px dashed #555;
    border-radius: 4px;
    color: #e0e0e0;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
}

.action-box input[type="file"]:hover {
    border-color: #777;
    background-color: #3a3a3a;
}

.action-box input[type="file"]::-webkit-file-upload-button {
    background-color: #444;
    color: #e0e0e0;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
    font-weight: bold;
}

.action-box input[type="file"]::-webkit-file-upload-button:hover {
    background-color: #555;
}

/* Batch upload step indicators */
#batch-tab .action-box h3 {
    color: #66BB6A;
    margin-bottom: 8px;
}

#batch-tab .action-box p {
    font-size: 13px;
    margin-bottom: 15px;
}

/* Log styling */
#batch-log {
    max-height: 300px;
    overflow-y: auto;
    background-color: #1a1a1a;
    border-radius: 4px;
    padding: 10px;
    font-family: monospace;
    font-size: 12px;
}

#batch-log p {
    margin: 4px 0;
    padding: 4px 8px;
    border-radius: 3px;
}

#batch-log p.success {
    background-color: rgba(102, 187, 106, 0.1);
}

#batch-log p.error {
    background-color: rgba(239, 83, 80, 0.1);
}

/* === ANNOUNCEMENTS TAB === */
.ann-label {
    display: block;
    font-size: 13px;
    color: #aaa;
    margin: 14px 0 4px;
}

.ann-input,
.ann-textarea {
    width: 100%;
    background-color: #1e1e1e;
    border: 1px solid #444;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 14px;
    padding: 10px 12px;
    box-sizing: border-box;
    resize: vertical;
    font-family: inherit;
}

.ann-input:focus,
.ann-textarea:focus {
    outline: none;
    border-color: #66BB6A;
}

.ann-hint {
    font-size: 11px;
    color: #666;
    margin: 4px 0 0;
}

/* Announcement cards in the list */
.ann-card {
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.ann-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.ann-badge {
    font-size: 11px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.ann-badge.active   { background: rgba(102,187,106,0.2); color: #66BB6A; }
.ann-badge.inactive { background: rgba(239,83,80,0.15);  color: #ef5350; }

.ann-date {
    font-size: 12px;
    color: #666;
    margin-left: auto;
}

.ann-card-title {
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 4px;
    color: #e0e0e0;
}

.ann-card-body {
    font-size: 13px;
    color: #999;
    white-space: pre-wrap;
    margin-bottom: 12px;
}

.ann-card-actions {
    display: flex;
    gap: 8px;
}

.ann-card-actions .action-btn {
    padding: 6px 14px;
    font-size: 13px;
}

.ann-preview-img {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
    display: block;
}

