/* Modern Admin Area Styles */

/* Reset and Base Styles */
.admin-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    padding: 0;
    margin: 0;
}

/* Login Page Styles */
.admin-login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.admin-login-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

.admin-login-title {
    font-size: 28px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    text-align: center;
}

.admin-login-subtitle {
    font-size: 14px;
    color: #718096;
    text-align: center;
    margin-bottom: 32px;
}

.admin-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.admin-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.admin-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.admin-btn:active {
    transform: translateY(0);
}

/* Menu Styles */
.admin-menu-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    padding: 32px;
    max-width: 900px;
    margin: 40px auto;
}

.admin-menu-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
    padding-bottom: 16px;
    border-bottom: 3px solid #667eea;
}

.admin-menu-section {
    margin-bottom: 32px;
}

.admin-menu-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.admin-menu-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.admin-menu-link {
    display: block;
    padding: 16px 20px;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    color: #2d3748;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.admin-menu-link:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateX(4px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.2);
}

/* Table/Grid Styles */
.admin-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    padding: 24px;
    margin: 24px;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: #667eea;
    color: white;
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #4a5568;
}

.admin-table tr:hover {
    background: #f7fafc;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

/* GridView Modern Styling */
.admin-gridview {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.admin-gridview th {
    background: #667eea;
    color: white;
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.admin-gridview td {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #4a5568;
    border: none;
}

.admin-gridview tr:hover {
    background: #f7fafc;
}

.admin-gridview tr:last-child td {
    border-bottom: none;
}

.admin-gridview a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s;
}

.admin-gridview a:hover {
    background: #667eea;
    color: white;
}

/* Form Styles */
.admin-form-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    padding: 32px;
    margin: 24px;
    max-width: 1200px;
}

.admin-form-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 3px solid #667eea;
}

.admin-form-group {
    margin-bottom: 24px;
}

.admin-form-label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.admin-form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.admin-form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s;
    box-sizing: border-box;
    font-family: inherit;
    resize: vertical;
}

.admin-form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.admin-form-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    transition: all 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.admin-form-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.admin-form-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

/* DetailsView Styling */
.admin-detailsview {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.admin-detailsview th {
    background: #667eea;
    color: white;
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 200px;
}

.admin-detailsview td {
    padding: 16px;
    background: #f7fafc;
    color: #4a5568;
}

.admin-detailsview input[type="text"],
.admin-detailsview input[type="number"] {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.admin-detailsview input[type="text"]:focus,
.admin-detailsview input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.admin-detailsview input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

/* Button Styles */
.admin-btn-primary {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    background: #667eea;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.admin-btn-secondary {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #667eea;
    background: white;
    border: 2px solid #667eea;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-btn-secondary:hover {
    background: #f7fafc;
    transform: translateY(-2px);
}

/* Search/Filter Styles */
.admin-search-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    padding: 24px;
    margin: 24px;
    margin-bottom: 0;
}

.admin-search-row {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.admin-search-group {
    flex: 1;
    min-width: 200px;
}

.admin-search-label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 13px;
}

.admin-search-input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.admin-search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.admin-search-select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.admin-search-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.admin-search-btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: #667eea;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.admin-search-btn:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Card Styles */
.admin-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    padding: 24px;
    margin-bottom: 24px;
}

.admin-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

/* Admin Panel in Details Page */
.admin-panel-modern {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    padding: 32px;
    margin: 24px auto;
    max-width: 1400px;
}

.admin-panel-modern h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 3px solid #667eea;
}

.admin-panel-modern table {
    width: 100%;
    border-collapse: collapse;
}

.admin-panel-modern td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.admin-panel-modern input[type="text"],
.admin-panel-modern textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.admin-panel-modern input[type="text"]:focus,
.admin-panel-modern textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.admin-panel-modern select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.admin-panel-modern select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.admin-panel-modern input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

/* Utility Classes */
.admin-text-center {
    text-align: center;
}

.admin-mt-24 {
    margin-top: 24px;
}

.admin-mb-24 {
    margin-bottom: 24px;
}

.admin-p-24 {
    padding: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-menu-links {
        grid-template-columns: 1fr;
    }
    
    .admin-search-row {
        flex-direction: column;
    }
    
    .admin-form-container,
    .admin-table-container {
        margin: 12px;
        padding: 16px;
    }
}
