/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #4361ee;
    --secondary-color: #f72585;
    --dark-color: #3a0ca3;
    --light-color: #f1f5f9;
    --gray-color: #64748b;
    --background-color: #f1f5f9;
    --white-color: #ffffff;
    --success-color: #10b981;
    --error-color: #ef4444;
    --font-family: 'Roboto', sans-serif;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: #333;
    line-height: 1.6;
}

/* --- Authentication Pages --- */
.auth-body { display: flex; justify-content: center; align-items: center; height: 100vh; background-image: linear-gradient(135deg, var(--primary-color), var(--dark-color)); }
.auth-container { width: 100%; max-width: 420px; padding: 1rem; }
.auth-form { background-color: var(--white-color); padding: 2.5rem; border-radius: var(--border-radius); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.auth-form h2 { color: var(--dark-color); margin-bottom: 0.5rem; text-align: center; }
.auth-form p { color: var(--gray-color); margin-bottom: 1.5rem; text-align: center; }
.auth-form p a { color: var(--primary-color); text-decoration: none; font-weight: 500; }
.auth-form p a:hover { text-decoration: underline; }

/* --- General Form Styles --- */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.5rem; color: var(--gray-color); font-weight: 500; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="file"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: var(--border-radius);
    transition: border-color 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2); }
.has-error input { border-color: var(--error-color); }
.help-block { color: var(--error-color); font-size: 0.875rem; margin-top: 0.25rem; display: block; }

.btn { display: inline-block; padding: 0.75rem 1.5rem; border: none; border-radius: var(--border-radius); cursor: pointer; font-weight: 700; transition: all 0.2s ease; text-align: center; }
.btn:hover { transform: translateY(-2px); }
.btn:disabled { background-color: var(--gray-color); cursor: not-allowed; }
.btn-primary { background-color: var(--primary-color); color: var(--white-color); width: 100%; }
.btn-primary:hover { background-color: #3a53c4; }

/* --- Dashboard --- */
.dashboard-container { display: flex; min-height: 100vh; }
.sidebar { width: 250px; background: var(--dark-color); color: var(--white-color); display: flex; flex-direction: column; transition: width 0.3s ease; }
.sidebar-header { padding: 1.5rem; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.sidebar-menu { list-style-type: none; flex-grow: 1; }
.sidebar-menu li a { display: flex; align-items: center; padding: 1rem 1.5rem; color: var(--light-color); text-decoration: none; transition: background-color 0.3s ease; border-left: 4px solid transparent; }
.sidebar-menu li.active a, .sidebar-menu li a:hover { background-color: rgba(255, 255, 255, 0.1); border-left-color: var(--secondary-color); }
.sidebar-menu li a i { margin-right: 1rem; width: 20px; text-align: center; font-size: 1.1rem; }
.main-content { flex-grow: 1; background-color: var(--background-color); overflow-y: auto; }
.main-header { padding: 2rem; background-color: var(--white-color); border-bottom: 1px solid #e2e8f0; }
.main-header h1 { color: var(--dark-color); }
.main-header p { color: var(--gray-color); }
.content-area { padding: 2rem; }
.card { background-color: var(--white-color); border-radius: var(--border-radius); box-shadow: var(--box-shadow); padding: 1.5rem; margin-bottom: 1.5rem; }
.card h3 { color: var(--dark-color); margin-bottom: 1rem; border-bottom: 1px solid #e2e8f0; padding-bottom: 0.5rem; }

/* --- Specific Dashboard Styles --- */
.quick-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-quick-action { background-color: var(--light-color); color: var(--dark-color); padding: 1rem; border-radius: var(--border-radius); text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; flex-grow: 1; }
.btn-quick-action:hover { background-color: #e2e8f0; }
.btn-quick-action i { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--primary-color); }

.service-categories { display: flex; flex-direction: column; gap: 1.5rem; }
.service-category h4 { margin-bottom: 0.75rem; color: var(--primary-color); }
.service-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0.75rem; }
.checkbox-group { display: flex; align-items: center; }
.checkbox-group input[type="checkbox"] { margin-right: 0.5rem; width: 16px; height: 16px; accent-color: var(--primary-color); }

.file-list-ul { list-style-type: none; }
.file-list-ul li { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem; border-radius: var(--border-radius); }
.file-list-ul li:nth-child(odd) { background-color: var(--light-color); }
.file-list-ul li a { color: var(--dark-color); text-decoration: none; font-weight: 500; }
.file-list-ul li a:hover { color: var(--primary-color); }
.btn-delete { background: none; border: none; color: var(--error-color); font-size: 1.5rem; cursor: pointer; line-height: 1; }
.btn-delete:hover { color: #c53030; }

/* --- Toast Notifications --- */
.toast { position: fixed; top: 20px; right: 20px; padding: 1rem 1.5rem; border-radius: var(--border-radius); color: var(--white-color); z-index: 1000; transform: translateX(calc(100% + 20px)); transition: transform 0.5s ease-in-out; }
.toast.show { transform: translateX(0); }
.toast-success { background-color: var(--success-color); }
.toast-error { background-color: var(--error-color); }

/* --- Responsive --- */
@media (max-width: 992px) {
    .sidebar { width: 70px; }
    .sidebar .nav-text, .sidebar-header h3 { display: none; }
    .sidebar-menu li a { justify-content: center; }
    .sidebar-menu li a i { margin-right: 0; }
}

@media (max-width: 768px) {
    .dashboard-container { flex-direction: column; }
    .sidebar { width: 100%; height: auto; flex-direction: row; }
    .sidebar-header { display: none; }
    .sidebar-menu { display: flex; width: 100%; justify-content: space-around; }
    .sidebar-menu li a { flex-direction: column; padding: 0.75rem 0.5rem; border-left: none; border-bottom: 4px solid transparent; }
    .sidebar-menu li a i { margin-right: 0; margin-bottom: 0.25rem; }
    .sidebar-menu .nav-text { display: block; font-size: 0.7rem; }
    .main-header, .content-area { padding: 1.5rem; }
}






