/* assets/css/modern.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary: #0d4a6f;
    --primary-light: #26a69a;
    --accent: #ffca28;
    --accent-dark: #ffa000;
    --text-main: #2c3e50;
    --text-muted: #7f8c8d;
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Header Styles */
.modern-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 40px 20px;
    color: white;
    text-align: center;
    border-bottom: 6px solid var(--accent);
    position: relative;
    overflow: hidden;
}

.modern-header::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.header-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 25px;
}

.header-logos img {
    height: 80px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    transition: var(--transition);
}

.header-logos img:hover {
    transform: translateY(-5px) scale(1.05);
}

.modern-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.modern-subtitle {
    font-size: clamp(1rem, 3vw, 1.4rem);
    color: var(--accent);
    font-weight: 500;
}

/* Card & Sections */
.section-card {
    padding: 30px;
    margin-bottom: 40px;
}

/* Buttons */
.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: var(--accent);
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    gap: 10px;
}

.btn-modern:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-modern-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-modern-outline:hover {
    background: var(--primary);
    color: white;
}

/* Forms (Multi-step optimization) */
.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-step.active {
    display: block;
}

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

.fieldset-modern {
    border: none;
    margin-bottom: 25px;
    padding: 0;
}

.fieldset-modern legend {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
    width: 100%;
}

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

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

.input-modern {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: white;
}

.input-modern:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(38, 166, 154, 0.2);
}

/* Stepper Indicator */
.stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.stepper::before {
    content: '';
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 2px;
    background: #ddd;
    z-index: 1;
    transform: translateY(-50%);
}

.step-item {
    width: 35px;
    height: 35px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 2;
    color: #999;
}

.step-item.active {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--glass-bg);
}

.step-item.completed {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Responsive Grid Hooks */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Footer */
.modern-footer {
    margin-top: 60px;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

/* Table Styles for Admin */
.modern-table-container {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: var(--radius-md);
}

.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.modern-table th {
    background-color: rgba(13, 74, 111, 0.05);
    color: var(--primary);
    text-align: left;
    padding: 15px;
    font-weight: 600;
    border-bottom: 2px solid #eee;
}

.modern-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #efefef;
    vertical-align: middle;
}

.modern-table tr:hover td {
    background-color: rgba(38, 166, 154, 0.05);
}

.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-success { background: #e8f5e9; color: #2e7d32; }
.badge-info { background: #e3f2fd; color: #1565c0; }
.badge-warning { background: #fff8e1; color: #f57f17; }

/* Filter Bar */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    padding: 20px;
    margin-bottom: 30px;
}

/* Modal / Popup */
.modern-modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    height: auto;
    max-height: 85vh;
    overflow-y: auto;
    background: white;
    z-index: 1000;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 0 0 1000px rgba(0,0,0,0.5);
}
