﻿/* Layout Base */
.admin-root {
    min-height: 100vh;
    background: #f3f6fb;
    color: #1f2937;
    width: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    padding: 15px 0;
    color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    letter-spacing: -1px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.return-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

    .return-btn:hover {
        background: white;
        color: #1e3a8a;
    }

/* Content */
.main-content {
    padding: 30px 0;
}

.page-header {
    background: white;
    padding: 25px 35px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.page-title {
    font-size: 1.8rem;
    color: #1e3a8a;
    margin: 0;
}

.page-subtitle {
    color: #64748b;
    margin: 5px 0 0;
}

.tab-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.search-box {
    position: relative;
}

    .search-box input {
        padding: 10px 35px 10px 15px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        width: 250px;
    }

.search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.add-btn {
    background: #059669;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

    .admin-table th {
        text-align: left;
        padding: 12px 15px;
        color: #64748b;
        border-bottom: 2px solid #f1f5f9;
    }

    .admin-table td {
        padding: 15px;
        border-bottom: 1px solid #f1f5f9;
    }

.action-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.view-btn:hover {
    background: #eef2ff;
    color: #2563eb;
    border-color: #2563eb;
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-container.mini {
    width: 500px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.modal-header {
    background: #1e3a8a;
    color: white;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

    .form-group label {
        font-weight: 600;
        font-size: 0.9rem;
    }

.form-input {
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.submit-btn {
    background: #1e3a8a;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
}

.cancel-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
}
