:root {
    --primary: #65B741;
    --primary-dark: #4e9231;
    --secondary: #3A5743;
    --text-dark: #333;
    --text-medium: #666;
    --text-light: #999;
    --background: #f5f7fa;
    --white: #fff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border: #e0e0e0;
    --success: #4CAF50;
    --warning: #FF9800;
    --danger: #F44336;
    --radius: 8px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background);
    color: var(--text-dark);
}

.user-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    background-color: var(--white);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, width 0.3s ease;
    position: relative;
    z-index: 100;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.sidebar-header img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.sidebar-header h2 {
    color: var(--primary);
    font-weight: 600;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.sidebar-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
    border-left: 3px solid transparent;
}

.sidebar-nav li:hover {
    background-color: rgba(101, 183, 65, 0.1);
}

.sidebar-nav li.active {
    background-color: rgba(101, 183, 65, 0.15);
    border-left-color: var(--primary);
}

.sidebar-nav li i {
    font-size: 18px;
    margin-right: 15px;
    color: var(--text-medium);
}

.sidebar-nav li.active i {
    color: var(--primary);
}

.sidebar-nav li span {
    font-weight: 500;
    color: var(--text-medium);
}

.sidebar-nav li.active span {
    color: var(--primary);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
}

#admin-panel-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    cursor: pointer;
    color: white;
    padding: 12px 15px;
    width: 100%;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(101, 183, 65, 0.3);
}

#admin-panel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(101, 183, 65, 0.4);
}

#admin-panel-btn .admin-arrow {
    font-size: 12px;
    opacity: 0.8;
}

#admin-panel-btn i:first-child {
    margin-right: 10px;
}

#logout-btn {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-medium);
    padding: 10px;
    width: 100%;
    font-weight: 500;
    transition: color 0.2s;
}

#logout-btn:hover {
    color: var(--danger);
}

#logout-btn i {
    margin-right: 10px;
}

/* Content Styles */
.content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 18px 25px;
    border-bottom: none;
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.header-left {
    display: flex;
    align-items: center;
    flex: 1;
    padding-left: 10px;
}

.toggle-sidebar {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    margin-right: 20px;
    color: var(--text-medium);
    display: none; /* Caché par défaut sur desktop */
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-sidebar:hover {
    background-color: rgba(101, 183, 65, 0.1);
    color: var(--primary);
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    position: relative;
    padding-left: 15px;
    line-height: 1.2;
    display: flex;
    align-items: center;
}

.page-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 65%;
    width: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.user-info {
    display: flex;
    align-items: center;
}

.username {
    font-weight: 500;
    margin-right: 10px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Page Content Styles avec animations */
.page-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.page-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Animation de sortie pour la page qui se cache */
.page-content.leaving {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease-out;
}

/* Animation d'entrée pour la page qui apparaît */
.page-content.entering {
    display: block;
    opacity: 0;
    transform: translateY(15px);
}

/* Dashboard Styles avec animations */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(101, 183, 65, 0.15);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 15px;
}

.stat-info h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 5px;
}

.stat-info p {
    color: var(--text-medium);
    font-size: 14px;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.card {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
    position: relative;
    padding-left: 12px;
    margin: 0;
    display: flex;
    align-items: center;
    line-height: 1.2;
}

.card-header h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 65%;
    width: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

.btn-outline {
    background: none;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.empty-message {
    color: var(--text-light);
    text-align: center;
    padding: 30px 0;
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background-color: rgba(101, 183, 65, 0.1);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background-color: rgba(101, 183, 65, 0.2);
}

.action-btn i {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 10px;
}

.action-btn span {
    font-weight: 500;
}

/* Servers Page Styles */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 15px 0;
}

.new-server-button-container {
    margin: 20px 0;
}

.btn-create.full-width {
    width: 100%;
    justify-content: center;
}

.btn-create {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: 12px 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.btn-create:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-create i {
    margin-right: 8px;
}

.server-card {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    transition: transform 0.2s ease;
}

.server-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.server-info {
    flex: 1;
}

.server-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.status-badge {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 10px;
}

.status-online {
    background-color: var(--success);
}

.status-offline {
    background-color: var(--text-light);
}

.server-details {
    display: flex;
    margin-bottom: 10px;
}

.server-detail {
    margin-right: 20px;
    font-size: 14px;
    color: var(--text-medium);
}

.server-actions {
    display: flex;
    align-items: center;
}

.server-btn {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    margin-left: 10px;
    cursor: pointer;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.server-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
}

.btn-start {
    color: var(--success);
}

.btn-stop {
    color: var(--danger);
}

/* Modal Styles */
.modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--white);
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.7) translateY(-20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Animation de fermeture */
.modal.closing {
    opacity: 0;
    visibility: visible;
}

.modal.closing .modal-content {
    transform: scale(0.8) translateY(20px);
    opacity: 0;
}

.modal-header {
    background-color: var(--white);
    color: var(--text-dark);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    border-radius: var(--radius) var(--radius) 0 0;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    position: relative;
    padding-left: 12px;
    margin: 0;
    display: flex;
    align-items: center;
    line-height: 1.2;
}

.modal-header h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 65%;
    width: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.close-modal:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
    transform: scale(1.1);
}

/* Contenu du modal */
.modal form {
    padding: 25px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease 0.1s;
}

.modal.active form {
    opacity: 1;
    transform: translateY(0);
}

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

.modal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.modal .form-group input,
.modal .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    transition: border-color 0.3s;
    background-color: var(--white);
    box-sizing: border-box;
}

.modal .form-group input:focus,
.modal .form-group select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(101, 183, 65, 0.2);
}

.modal .form-group input::placeholder {
    color: var(--text-light);
}

/* Styles spécifiques pour les headers colorés */
/*
#redeem-modal .modal-header {
    background-color: var(--warning);
}

#change-password-modal .modal-header {
    background-color: var(--warning);
}

#confirm-action-modal .modal-header {
    background-color: var(--secondary);
}
*/

/* Styles pour le modal de confirmation d'action - inspiré du modal de déconnexion */
#confirm-action-modal .modal-content {
    max-width: 500px;
    margin: 20px;
}

#confirm-action-modal .modal-header {
    padding: 25px 30px;
    background-color: #f8f9fa;
    border-bottom: 1px solid var(--border);
}

#confirm-action-modal .modal-header h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--warning);
    font-size: 20px;
    margin: 0;
    font-weight: 600;
}

#confirm-action-modal .modal-header h3 i {
    font-size: 22px;
    color: var(--warning);
}

#confirm-action-modal .modal-body {
    padding: 30px;
}

.confirm-warning-message {
    padding: 20px 0;
}

.confirm-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--radius);
    border-left: 4px solid var(--warning);
}

.confirm-icon {
    flex-shrink: 0;
}

.confirm-icon i {
    font-size: 48px;
    color: var(--primary);
}

.confirm-details {
    flex: 1;
}

.confirm-details h4 {
    margin: 0 0 10px 0;
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 600;
}

.confirm-details p {
    margin: 0;
    color: var(--text-medium);
    line-height: 1.5;
    font-size: 14px;
}

.confirm-actions-info {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: var(--radius);
    padding: 16px;
    border-left: 4px solid var(--warning);
}

.confirm-actions-info p {
    margin: 0;
    color: #856404;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.confirm-actions-info p i {
    color: var(--warning);
    font-size: 16px;
    flex-shrink: 0;
}

/* Boutons du modal de confirmation */
#confirm-action-modal .modal-footer {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 25px;
    border-top: 1px solid var(--border);
    background-color: #fafafa;
}

#confirm-action-modal .modal-footer button {
    padding: 14px 24px;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    font-size: 14px;
    min-width: 160px;
    justify-content: center;
}

#confirm-action-modal .btn-cancel {
    background-color: #f8f9fa;
    color: var(--text-medium);
    border: 1px solid var(--border);
    order: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#confirm-action-modal .btn-cancel:hover {
    background-color: #e9ecef;
    color: var(--text-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

#confirm-action-modal .btn-danger {
    background-color: var(--danger);
    color: white;
    order: 2;
    box-shadow: 0 2px 4px rgba(244, 67, 54, 0.3);
}

#confirm-action-modal .btn-danger:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(244, 67, 54, 0.4);
}

#confirm-action-modal .btn-primaire {
    background-color: var(--primary);
    color: white;
    order: 2;
    box-shadow: 0 2px 4px rgba(101, 183, 65, 0.3);
}

#confirm-action-modal .btn-primaire:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(101, 183, 65, 0.4);
}

#confirm-action-modal .btn-warning {
    background-color: var(--warning);
    color: white;
    order: 2;
    box-shadow: 0 2px 4px rgba(255, 152, 0, 0.3);
}

#confirm-action-modal .btn-warning:hover {
    background-color: #e68900;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 152, 0, 0.4);
}

/* Modal pour confirmation - contenu centré */
.confirm-modal-body {
    padding: 25px;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease 0.1s;
}

.modal.active .confirm-modal-body {
    opacity: 1;
    transform: translateY(0);
}

#confirm-action-message {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-dark);
    margin: 0;
}

.modal-footer {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--border);
    background-color: #fafbfc;
    border-radius: 0 0 var(--radius) var(--radius);
}

.btn-cancel {
    background-color: #f1f1f1;
    border: none;
    border-radius: var(--radius);
    padding: 14px 25px;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-cancel:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.btn-danger {
    background-color: var(--danger);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: 14px 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    flex: 1;
    font-size: 16px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-danger:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-warning {
    background-color: var(--warning);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: 8px 15px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-warning:hover {
    background-color: #e68900;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Account Page Styles avec animations */
.account-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.account-info {
    padding: 25px;
}

.account-plan {
    padding: 25px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    transition: border-color 0.3s;
    background-color: var(--white);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(101, 183, 65, 0.2);
}

.form-help {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
}

.account-form-header {
    display: none;
}

.btn-save-account {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: 18px 24px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-top: 20px;
    min-height: 54px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 6px rgba(101, 183, 65, 0.3);
}

.btn-save-account.full-width {
    width: 100%;
}

.btn-save-account:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(101, 183, 65, 0.4);
}

.btn-save-account i {
    margin-right: 12px;
    font-size: 18px;
}

.btn-change-password {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
    border: none;
    padding: 18px 24px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(255, 152, 0, 0.3);
    margin-top: 15px;
    min-height: 54px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-change-password.full-width {
    width: 100%;
}

.btn-change-password:hover {
    background: linear-gradient(135deg, #F57C00, #E65100);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(255, 152, 0, 0.4);
}

.btn-change-password i {
    margin-right: 12px;
    font-size: 18px;
}

.account-plan h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    padding-left: 12px;
    display: flex;
    align-items: center;
    line-height: 1.2;
}

.account-plan h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 65%;
    width: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

.plan-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 30px;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.free {
    background-color: #e3f2fd;
    color: #1976d2;
}

.premium {
    background-color: #fff8e1;
    color: #ff8f00;
}

.plan-features {
    list-style: none;
    margin-bottom: 25px;
}

.plan-features li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li i {
    color: var(--success);
    margin-right: 12px;
    font-size: 16px;
}

.btn-upgrade {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: 12px 20px;
    width: 100%;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 10px;
    font-size: 15px;
}

.btn-upgrade:hover {
    background-color: var(--primary-dark);
}

.btn-redeem {
    background: none;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: var(--radius);
    padding: 10px 0;
    width: 100%;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-redeem:hover {
    background-color: rgba(101, 183, 65, 0.1);
}

.btn-redeem i {
    margin-right: 8px;
}

.btn-primaire {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: 8px 15px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primaire:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Code premium modal */
.code-redeem-form {
    padding: 25px;
    text-align: center;
}

.code-redeem-form .form-group {
    margin-bottom: 25px;
}

.code-redeem-form .form-group label {
    text-align: center;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

#premium-code {
    letter-spacing: 1px;
    font-family: monospace;
    font-size: 16px;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
}

/* Support Page Styles */
.support-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.support-option {
    background-color: rgba(101, 183, 65, 0.1);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.2s;
}

.support-option:hover {
    background-color: rgba(101, 183, 65, 0.2);
    transform: translateY(-3px);
}

.support-option i {
    font-size: 30px;
    color: var(--primary);
    margin-bottom: 15px;
}

.support-option h4 {
    margin-bottom: 10px;
}

.support-option p {
    color: var(--text-medium);
    font-size: 14px;
}

/* Styles pour les options premium dans le select */
.premium-option {
    color: var(--text-light);
    background-color: rgba(255, 152, 0, 0.08);
    font-style: italic;
}

select option:disabled {
    color: var(--text-light);
}

.premium-note {
    font-size: 13px;
    color: var(--warning);
    margin-top: 8px;
    font-style: italic;
    display: flex;
    align-items: center;
}

.premium-note::before {
    content: '\f06a';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 8px;
    font-size: 14px;
}

/* ===============================================
   NOUVEAU MODAL DE CRÉATION DE SERVEUR - REFAIT
   =============================================== */

/* Styles spécifiques pour le modal de création de serveur */
#new-server-modal .modal-content {
    max-width: 600px;
    margin: 20px;
}

#new-server-modal .modal-header h3 {
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

#new-server-modal .modal-body {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Lignes de formulaire */
.form-row {
    margin-bottom: 25px;
}

/* Groupes de champs améliorés */
#new-server-modal .form-group {
    margin-bottom: 20px;
}

#new-server-modal .form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

#new-server-modal .form-group label i {
    color: var(--primary);
    font-size: 16px;
    width: 16px;
}

/* Champs de saisie améliorés */
#new-server-modal .form-group input,
#new-server-modal .form-group select,
#new-server-modal .form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #fafbfc;
    color: var(--text-dark);
    font-family: inherit;
}

#new-server-modal .form-group input:focus,
#new-server-modal .form-group select:focus,
#new-server-modal .form-group textarea:focus {
    border-color: var(--primary);
    background-color: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(101, 183, 65, 0.1);
}

/* Placeholders */
#new-server-modal .form-group input::placeholder,
#new-server-modal .form-group textarea::placeholder {
    color: #8892a0;
    font-style: italic;
}

/* Aide contextuelle */
#new-server-modal .form-help {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-medium);
    font-style: italic;
}

#new-server-modal .form-help.premium-note {
    color: var(--warning);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

#new-server-modal .form-help.premium-note i {
    color: #ffd700;
}

/* Options Premium dans les selects */
#new-server-modal .premium-option {
    color: var(--warning);
    background-color: rgba(255, 152, 0, 0.05);
    font-style: italic;
}

/* Footer du modal */
#new-server-modal .modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e1e5e9;
    background: #fafbfc;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* Bouton Annuler - comme dans le modal de déconnexion */
#new-server-modal .btn-cancel {
    background-color: #f8f9fa;
    color: var(--text-medium);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 24px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    min-width: 140px;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#new-server-modal .btn-cancel:hover {
    background-color: #e9ecef;
    color: var(--text-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Bouton Créer - en vert selon la charte graphique */
#new-server-modal .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: white;
    border-radius: var(--radius);
    padding: 14px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    min-width: 160px;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(101, 183, 65, 0.3);
}

#new-server-modal .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #3e7a28);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(101, 183, 65, 0.4);
}

#new-server-modal .btn-primary:active {
    transform: translateY(0);
}

#new-server-modal .btn-primary:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive pour le modal */
@media (max-width: 768px) {
    #new-server-modal .modal-content {
        margin: 10px;
        max-width: calc(100vw - 20px);
    }
    
    #new-server-modal .modal-body {
        padding: 20px;
        max-height: 60vh;
    }
    
    #new-server-modal .modal-footer {
        padding: 15px 20px;
        flex-direction: column;
    }
    
    #new-server-modal .btn-cancel,
    #new-server-modal .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

/* Personnalisation des selects */
select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
    padding-right: 40px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    .account-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .user-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        transform: translateX(-100%);
        z-index: 1000;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .content {
        margin-top: 70px;
    }
    
    .content-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: var(--white);
        z-index: 90;
        padding: 15px 20px;
        margin-bottom: 0;
    }
    
    .toggle-sidebar {
        display: block; /* Afficher sur mobile */
    }
    
    .sidebar-nav,
    .sidebar-footer {
        display: block;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    /* Overlay when sidebar is active */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 99;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    #new-server-form {
        padding: 0 15px 10px 15px;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px 12px;
    }
    
    .header-left {
        padding-left: 0;
    }
}

.page-header h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    position: relative;
    padding-left: 15px;
    line-height: 1.2;
    display: flex;
    align-items: center;
}

.page-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 65%;
    width: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.card h3:not(.card-header h3) {
    font-size: 18px;
    font-weight: 600;
    position: relative;
    padding-left: 12px;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    line-height: 1.2;
}

.card h3:not(.card-header h3)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 65%;
    width: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

.support-container .card h3 {
    font-size: 18px;
    font-weight: 600;
    position: relative;
    padding-left: 12px;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    line-height: 1.2;
}

.support-container .card h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 65%;
    width: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

/* Styles pour le modal de déconnexion */
#logout-confirmation-modal .modal-content {
    max-width: 500px;
    margin: 20px;
}

#logout-confirmation-modal .modal-header {
    padding: 25px 30px;
    background-color: #f8f9fa;
    border-bottom: 1px solid var(--border);
}

#logout-confirmation-modal .modal-header h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--danger);
    font-size: 20px;
    margin: 0;
    font-weight: 600;
}

#logout-confirmation-modal .modal-header h3 i {
    font-size: 22px;
    color: var(--danger);
}

#logout-confirmation-modal .modal-body {
    padding: 30px;
}

.logout-warning-message {
    padding: 20px 0;
}

.logout-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--radius);
    border-left: 4px solid var(--danger);
}

.logout-icon {
    flex-shrink: 0;
}

.logout-icon i {
    font-size: 48px;
    color: var(--primary);
}

.logout-details {
    flex: 1;
}

.logout-details h4 {
    margin: 0 0 10px 0;
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 600;
}

.logout-details p {
    margin: 0;
    color: var(--text-medium);
    line-height: 1.5;
    font-size: 14px;
}

.logout-actions-info {
    background-color: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: var(--radius);
    padding: 16px;
    border-left: 4px solid #2196F3;
}

.logout-actions-info p {
    margin: 0;
    color: #1565c0;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logout-actions-info p i {
    color: #2196F3;
    font-size: 16px;
    flex-shrink: 0;
}

/* Boutons du modal de déconnexion */
#logout-confirmation-modal .modal-footer {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 25px;
    border-top: 1px solid var(--border);
    background-color: #fafafa;
}

#logout-confirmation-modal .modal-footer button {
    padding: 14px 24px;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    font-size: 14px;
    min-width: 160px;
    justify-content: center;
}

#confirm-logout-btn {
    background-color: #dc3545;
    color: white;
    order: 2;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

#confirm-logout-btn:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.4);
}

#logout-confirmation-modal .btn-cancel {
    background-color: #f8f9fa;
    color: var(--text-medium);
    border: 1px solid var(--border);
    order: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#logout-confirmation-modal .btn-cancel:hover {
    background-color: #e9ecef;
    color: var(--text-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Responsive pour le modal de confirmation */
@media (max-width: 768px) {
    #confirm-action-modal .modal-content {
        margin: 10px;
        max-width: calc(100vw - 20px);
    }
    
    #confirm-action-modal .modal-body {
        padding: 20px;
    }
    
    #confirm-action-modal .modal-header {
        padding: 20px;
    }
    
    #confirm-action-modal .modal-footer {
        flex-direction: column;
        padding: 20px;
        gap: 12px;
    }
    
    #confirm-action-modal .modal-footer button {
        width: 100%;
        justify-content: center;
        order: unset !important;
        min-width: auto;
        padding: 16px;
    }
    
    .confirm-info {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 18px;
    }
    
    .confirm-actions-info {
        padding: 16px;
    }

    #logout-confirmation-modal .modal-content {
        margin: 10px;
        max-width: calc(100vw - 20px);
    }
    
    #logout-confirmation-modal .modal-body {
        padding: 20px;
    }
    
    #logout-confirmation-modal .modal-header {
        padding: 20px;
    }
    
    #logout-confirmation-modal .modal-footer {
        flex-direction: column;
        padding: 20px;
        gap: 12px;
    }
    
    #logout-confirmation-modal .modal-footer button {
        width: 100%;
        justify-content: center;
        order: unset !important;
        min-width: auto;
        padding: 16px;
    }
    
    .logout-info {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 18px;
    }
    
    .logout-actions-info {
        padding: 16px;
    }
}

/* Styles spécifiques selon l'action */
#confirm-action-modal.delete-action .modal-header h3 {
    color: var(--danger);
}

#confirm-action-modal.delete-action .modal-header h3 i {
    color: var(--danger);
}

#confirm-action-modal.delete-action .confirm-info {
    border-left-color: var(--danger);
}

#confirm-action-modal.delete-action .confirm-actions-info {
    background-color: #ffebee;
    border-color: #ffcdd2;
    border-left-color: var(--danger);
}

#confirm-action-modal.delete-action .confirm-actions-info p {
    color: #c62828;
}

#confirm-action-modal.delete-action .confirm-actions-info p i {
    color: var(--danger);
}

/* Styles pour les actions de démarrage */
#confirm-action-modal.start-action .modal-header h3 {
    color: var(--success);
}

#confirm-action-modal.start-action .modal-header h3 i {
    color: var(--success);
}

#confirm-action-modal.start-action .confirm-info {
    border-left-color: var(--success);
}

#confirm-action-modal.start-action .confirm-actions-info {
    background-color: #e8f5e8;
    border-color: #c8e6c9;
    border-left-color: var(--success);
}

#confirm-action-modal.start-action .confirm-actions-info p {
    color: #2e7d32;
}

#confirm-action-modal.start-action .confirm-actions-info p i {
    color: var(--success);
}

/* Styles pour les actions d'arrêt */
#confirm-action-modal.stop-action .modal-header h3 {
    color: var(--warning);
}

#confirm-action-modal.stop-action .modal-header h3 i {
    color: var(--warning);
}

#confirm-action-modal.stop-action .confirm-info {
    border-left-color: var(--warning);
}

#confirm-action-modal.stop-action .confirm-actions-info {
    background-color: #fff8e1;
    border-color: #ffecb3;
    border-left-color: var(--warning);
}

#confirm-action-modal.stop-action .confirm-actions-info p {
    color: #f57c00;
}

/* ==============================================
   STYLES POUR LES PUBLICITÉS ADSENSE
   ============================================== */

/* Publicité dans la sidebar */
.sidebar-ad {
    margin: 15px 10px;
    padding: 10px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background-color: rgba(101, 183, 65, 0.02);
}

.sidebar-ad ins {
    display: block !important;
    min-height: 100px;
    text-align: center;
}

/* Publicité dans le dashboard */
.dashboard-ad {
    margin: 25px 0;
    padding: 20px;
    border-radius: var(--radius);
    background-color: rgba(101, 183, 65, 0.03);
    border: 1px solid rgba(101, 183, 65, 0.1);
}

.dashboard-ad ins {
    display: block !important;
    min-height: 120px;
}

/* Publicité avant les serveurs */
.servers-ad {
    margin: 20px 0;
    padding: 15px;
    border-radius: var(--radius);
    background-color: rgba(101, 183, 65, 0.03);
    border: 1px solid rgba(101, 183, 65, 0.1);
}

.servers-ad ins {
    display: block !important;
    min-height: 100px;
}

/* Publicité dans le plan compte */
.plan-ad {
    margin-top: 20px;
    padding: 15px;
    border-radius: var(--radius);
    background-color: rgba(255, 152, 0, 0.05);
    border: 1px solid rgba(255, 152, 0, 0.1);
}

.plan-ad ins {
    display: block !important;
    min-height: 120px;
}

/* Publicité dans le support */
.support-ad {
    margin-top: 30px;
    padding: 20px;
    border-radius: var(--radius);
    background-color: rgba(101, 183, 65, 0.03);
    border: 1px solid rgba(101, 183, 65, 0.1);
}

.support-ad ins {
    display: block !important;
    min-height: 120px;
}



/* Responsive pour les publicités */
@media (max-width: 768px) {
    .sidebar-ad {
        margin: 10px 5px;
        padding: 8px 0;
    }
    
    .dashboard-ad,
    .servers-ad,
    .plan-ad,
    .support-ad {
        margin: 15px 0;
        padding: 12px;
    }
    
    .sidebar-ad ins,
    .dashboard-ad ins,
    .servers-ad ins,
    .plan-ad ins,
    .support-ad ins {
        min-height: 80px;
    }
}

/* Styles pour cacher les publicités quand AdSense n'est pas chargé */
.adsbygoogle[data-adsbygoogle-status="unfilled"] {
    display: none !important;
}

/* Animation pour l'apparition des publicités */
.sidebar-ad,
.dashboard-ad,
.servers-ad,
.plan-ad,
.support-ad {
    opacity: 0;
    animation: fadeInAd 0.8s ease-in-out 0.5s forwards;
}

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