:root {
    --primary-blue: #26a8ff;
    --secondary-blue: #0089c7;
    --dark-bg: #0a0f2e;
    --card-bg: rgba(255, 255, 255, 0.04);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #e8eefc;
    --text-secondary: #b9c6f1;
    --success-green: #37b24d;
    --danger-red: #e03131;
    --warning-orange: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.recent-update-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 11px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.98em;
    font-weight: 600;
    background: #22c55e22;
    color: #22c55e;
    position: relative;
    animation: pulseGlow 0.7s infinite;
    box-shadow: 0 0 0 0 #22c55e66;
    border: 1px solid #22c55e44;
    letter-spacing: 0.5px;
    user-select: none;
}
.recent-update-badge .dot {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background-color: #22c55e;
    box-shadow: 0 0 6px 2px #22c55e66;
    animation: dotGlow 0.5s infinite both;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: radial-gradient(1200px 600px at 10% 0%, #1a2b6b 0%, #0b1230 60%, #060a20 100%);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 24px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://i.imgur.com/71mFeDC.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 300px;
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, rgba(18,32,82,.9), rgba(16,94,165,.6));
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.header h1 {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
    margin: 0;
}

.header p {
    color: var(--text-secondary);
    font-size: 1.1em;
    margin: 0;
}

.tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
}

.tab {
    flex: 1;
    padding: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.tab.active {
    color: var(--primary-blue);
    background: rgba(38, 168, 255, 0.1);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
}

.tab-content {
    display: none;
    padding: 30px;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1em;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    outline: none;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(38, 168, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.form-control::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

select.form-control {
    background-image: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

option {
    background-color: var(--dark-bg);
    color: var(--text-primary);
}

.btn {
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    box-shadow: 0 6px 20px rgba(38, 168, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(38, 168, 255, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-green), #2f9e44);
    color: white;
    box-shadow: 0 6px 20px rgba(55, 178, 77, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(55, 178, 77, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-red), #c92a2a);
    color: white;
    box-shadow: 0 6px 20px rgba(224, 49, 49, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(224, 49, 49, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.result-box {
    margin-top: 25px;
    padding: 20px;
    background: rgba(38, 168, 255, 0.1);
    border: 1px solid rgba(38, 168, 255, 0.2);
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: var(--primary-blue);
    word-break: break-word;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sanctions-container {
    margin-top: 20px;
}

.sanctions-container select {
    margin-bottom: 12px;
}

.help-text {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-top: 10px;
    font-style: italic;
}

#nlrTextContainer {
    background: rgba(38, 168, 255, 0.05);
    border: 1px solid rgba(38, 168, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
}

#nlrTextContainer label {
    color: var(--primary-blue) !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    display: block !important;
}

#nlrText {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(38, 168, 255, 0.3) !important;
    color: var(--text-primary) !important;
}

#nlrText:focus {
    border-color: var(--primary-blue) !important;
    box-shadow: 0 0 0 3px rgba(38, 168, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

#nlrText::placeholder {
    color: var(--text-secondary) !important;
    opacity: 0.7 !important;
}

.divider {
    height: 1px;
    background: var(--border-color);
    margin: 25px 0;
}

.candidature-templates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.template-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.template-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.template-card h3 {
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-size: 1.2em;
}

.template-card p {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-bottom: 15px;
}

.template-preview {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9em;
    color: var(--text-primary);
    white-space: pre-wrap;
    margin-bottom: 15px;
}

.discord-link:hover {
    background: rgba(38, 168, 255, 0.2) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(38, 168, 255, 0.3);
}

.job-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.job-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.job-item:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: translateX(5px);
}

.job-name {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95em;
}

.job-command {
    background: rgba(0, 0, 0, 0.4);
    color: var(--primary-blue);
    padding: 6px 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    font-weight: 600;
    border: 1px solid rgba(38, 168, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.job-command:hover {
    background: rgba(38, 168, 255, 0.2);
    border-color: var(--primary-blue);
    transform: scale(1.05);
}

.job-command:active {
    transform: scale(0.95);
}

.moderation-commands {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.command-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 12px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.command-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.command-code {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
    width: fit-content;
}

.command-description {
    color: var(--text-secondary);
    font-size: 0.85em;
    margin: 0;
    line-height: 1.3;
    opacity: 0.8;
}

@media (max-width: 768px) {
    body {
        padding: 16px;
    }
    
    .container {
        border-radius: 16px;
    }
    
    .header {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 1.8em;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .candidature-templates {
        grid-template-columns: 1fr;
    }
    
    #setjob .job-list {
        gap: 8px;
    }
    
    #setjob .job-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px 12px;
    }
    
    #setjob .job-command {
        align-self: flex-end;
        font-size: 0.8em;
        padding: 4px 8px;
    }
    
    #moderation .command-code {
        font-size: 0.8em;
        padding: 3px 6px;
    }
    
    #moderation .command-description {
        font-size: 0.8em;
    }
}


.floating-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(38, 168, 255, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.floating-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(38, 168, 255, 0.6);
}

.update-icon {
    font-size: 24px;
    color: white;
    position: relative;
}

.update-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-red);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    border: 2px solid white;
}

.updates-panel {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 450px;
    max-height: 600px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 999;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.updates-panel.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.updates-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(38, 168, 255, 0.1), rgba(38, 168, 255, 0.05));
}

.updates-header h3 {
    color: var(--primary-blue);
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.updates-content {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.update-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.update-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(5px);
}

.update-type {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.update-type.new {
    background: rgba(55, 178, 77, 0.2);
    color: var(--success-green);
}

.update-type.fix {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-orange);
}

.update-type.feature {
    background: rgba(38, 168, 255, 0.2);
    color: var(--primary-blue);
}

.update-item h4 {
    color: var(--text-primary);
    margin: 0 0 8px 0;
    font-size: 1em;
    font-weight: 600;
}

.update-item p {
    color: var(--text-secondary);
    margin: 0 0 8px 0;
    font-size: 0.9em;
    line-height: 1.4;
}

.update-date {
    color: var(--text-secondary);
    font-size: 0.8em;
    opacity: 0.7;
    font-style: italic;
}

.update-details {
    margin: 8px 0;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    border-left: 3px solid var(--primary-blue);
}

.detail-item {
    color: var(--text-secondary);
    font-size: 0.85em;
    margin-bottom: 4px;
    line-height: 1.3;
}

.detail-item:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .floating-button {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .update-icon {
        font-size: 20px;
    }
    
    .updates-panel {
        bottom: 80px;
        right: 20px;
        left: 20px;
        width: auto;
    }
}

/* Indicateur de dernière mise à jour */
.last-update-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(40, 167, 69, 0.08);
    border-top: 1px solid rgba(40, 167, 69, 0.2);
    color: var(--text-secondary);
    font-size: 0.85em;
    font-weight: 500;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #28a745;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
