/* Style d'administration EarthKingdoms pour le système NPCs */

/* Login Page */
.admin-login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #1e1e1e;
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-card {
    background-color: #2c2c2c;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, #EC9600, #E53C00);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.login-header i {
    font-size: 48px;
    margin-bottom: 15px;
}

.login-header h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.login-header p {
    opacity: 0.9;
}

.login-form {
    padding: 30px;
}

.login-footer {
    padding: 20px 30px;
    background-color: #333;
    text-align: center;
    border-top: 1px solid #444;
}

.login-footer a {
    color: #ccc;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.login-footer a:hover {
    color: #EC9600;
}

/* Alert */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-danger {
    background-color: rgba(229, 60, 0, 0.1);
    border: 1px solid #E53C00;
    color: #E53C00;
}

.alert-success {
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid #4CAF50;
    color: #4CAF50;
}

.btn-block {
    width: 100%;
}

/* Admin Page Layout */
.admin-page {
    display: flex;
    min-height: 100vh;
    background-color: #1e1e1e;
}

.admin-sidebar {
    width: 280px;
    background-color: #111;
    border-right: 1px solid #333;
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid #333;
}

.sidebar-header i {
    font-size: 40px;
    color: #EC9600;
    margin-bottom: 10px;
}

.sidebar-header h2 {
    font-size: 20px;
    margin: 0;
}

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

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
    background-color: #1a1a1a;
    color: white;
    border-left-color: #EC9600;
}

.sidebar-nav a.active {
    background-color: #1a1a1a;
    color: white;
    border-left-color: #EC9600;
}

.sidebar-nav a i {
    font-size: 20px;
    width: 24px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #333;
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #1a1a1a;
    border-radius: 8px;
}

.admin-info i {
    color: #EC9600;
}

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background-color: rgba(229, 60, 0, 0.2);
    color: #E53C00;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(229, 60, 0, 0.3);
}

.btn-logout:hover {
    background-color: #E53C00;
    color: white;
}

/* Main Content */
.admin-main {
    margin-left: 280px;
    flex: 1;
    padding: 30px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #333;
}

.admin-header h1 {
    font-size: 32px;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-header-actions {
    display: flex;
    gap: 15px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: #2c2c2c;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: white;
}

.stat-label {
    color: #aaa;
    font-size: 14px;
}

/* Filters Bar */
.filters-bar {
    background-color: #2c2c2c;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.filters-bar h3 {
    margin-bottom: 15px;
    color: white;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-btn {
    padding: 10px 20px;
    border: 1px solid #444;
    border-radius: 8px;
    background-color: #333;
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #EC9600;
    color: white;
    background-color: #3a3a3a;
}

.filter-btn.active {
    background: linear-gradient(#EC9600, #E53C00);
    border-color: #EC9600;
    color: white;
}

/* Orders Section */
.orders-section {
    background-color: #2c2c2c;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.orders-section h2 {
    margin-bottom: 25px;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.order-card {
    border: 1px solid #444;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: #333;
}

.order-card:hover {
    border-color: #EC9600;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
}

.order-header {
    background-color: #2a2a2a;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #444;
}

.order-id {
    font-weight: bold;
    font-size: 18px;
    color: white;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-warning {
    background-color: rgba(236, 150, 0, 0.2);
    color: #EC9600;
    border: 1px solid #EC9600;
}

.badge-info {
    background-color: rgba(33, 150, 243, 0.2);
    color: #2196F3;
    border: 1px solid #2196F3;
}

.badge-success {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

.badge-danger {
    background-color: rgba(229, 60, 0, 0.2);
    color: #E53C00;
    border: 1px solid #E53C00;
}

.order-body {
    padding: 20px;
}

.order-info-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid #444;
}

.order-info-row:last-child {
    border-bottom: none;
}

.order-info-row i {
    color: #EC9600;
    margin-top: 2px;
    min-width: 20px;
}

.order-info-row strong {
    min-width: 100px;
    color: #aaa;
}

.order-info-row span {
    flex: 1;
    color: white;
}

.order-footer {
    padding: 15px 20px;
    background-color: #2a2a2a;
    border-top: 1px solid #444;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.empty-state {
    text-align: center;
    padding: 60px 30px;
    color: #aaa;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 15px;
    opacity: 0.3;
}

/* Order Detail */
.order-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.detail-card {
    background-color: #2c2c2c;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.detail-card h3 {
    margin-bottom: 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid #444;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #444;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #aaa;
}

.detail-value {
    color: white;
}

.text-muted {
    color: #aaa;
    font-style: italic;
}

.skin-preview {
    text-align: center;
    margin-bottom: 20px;
    padding: 30px;
    background-color: #333;
    border-radius: 12px;
}

.skin-image {
    max-width: 256px;
    width: 100%;
    height: auto;
    image-rendering: pixelated;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.admin-notes-display {
    padding: 15px;
    background-color: #333;
    border-radius: 8px;
    border-left: 4px solid #EC9600;
    color: white;
}

/* Actions Section */
.actions-section {
    background-color: #2c2c2c;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.actions-section h3 {
    margin-bottom: 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #444;
    border-radius: 8px;
    font-size: 16px;
    background-color: #333;
    color: white;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #EC9600;
}

textarea.form-control {
    resize: vertical;
    font-family: inherit;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* Responsive */
@media (max-width: 1024px) {
    .admin-sidebar {
        width: 70px;
    }
    
    .sidebar-header h2,
    .sidebar-nav a span,
    .admin-info span {
        display: none;
    }
    
    .sidebar-header {
        padding: 20px 10px;
    }
    
    .sidebar-nav a {
        justify-content: center;
        padding: 15px;
    }
    
    .admin-main {
        margin-left: 70px;
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        display: none;
    }
    
    .admin-main {
        margin-left: 0;
        padding: 15px;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .admin-header h1 {
        font-size: 24px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .orders-grid {
        grid-template-columns: 1fr;
    }
    
    .order-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        flex-direction: column;
    }
    
    .filter-btn {
        text-align: center;
    }
}
