/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e3c72;
    --secondary-color: #2a5298;
    --accent-color: #667eea;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gray-color: #6c757d;
    --border-color: #dee2e6;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Hind', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: white;
}

.logo-icon {
    font-size: 2rem;
    opacity: 0.9;
}

.logo-text h1 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.logo-text p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 10px;
    margin: 0;
    padding: 0;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: var(--transition);
    font-weight: 500;
}

nav a:hover, nav a.active {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Main Content */
main {
    flex: 1;
    padding: 40px 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="rgba(255,255,255,0.05)"><polygon points="50,0 100,50 50,100 0,50"/></svg>');
    background-size: 200px;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    opacity: 0.9;
    font-weight: 300;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background-color: white;
}

.features-section h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 60px;
    color: var(--primary-color);
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    background: white;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.feature-card i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-card h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--gray-color);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Dashboard Styles */
.dashboard {
    padding: 40px 0;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.dashboard-header h1 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.dashboard-header p {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 25px;
    transition: var(--transition);
    border-left: 5px solid var(--primary-color);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.stat-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    opacity: 0.8;
}

.stat-info h3 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 700;
}

.stat-info p {
    color: var(--gray-color);
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
}

.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.action-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    text-align: center;
    border: 2px solid transparent;
}

.action-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    border-color: var(--primary-color);
    color: inherit;
}

.action-card i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.action-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 600;
}

.action-card p {
    color: var(--gray-color);
    line-height: 1.6;
    margin: 0;
}

.recent-activities {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.recent-activities h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 600;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--light-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.activity-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.activity-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    opacity: 0.8;
}

.activity-content {
    flex: 1;
}

.activity-content p {
    margin: 0 0 8px 0;
    font-weight: 500;
    color: var(--dark-color);
}

.activity-content small {
    color: var(--gray-color);
    font-size: 0.9rem;
}

.activity-status {
    margin-left: auto;
}

/* Login Page */
.login-page {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-form {
    background: white;
    padding: 50px 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.login-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h1 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 2.2rem;
    font-weight: 700;
}

.login-header p {
    color: var(--gray-color);
    font-size: 1.1rem;
    margin: 0;
}

/* Form Styles */
.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.inline-form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.inline-form .form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(30, 60, 114, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent-color) 0%, #764ba2 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #20c997 100%);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #fd7e14 100%);
    color: var(--dark-color);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #e83e8c 100%);
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #6f42c1 100%);
    color: white;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Card Styles */
.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card-header {
    padding: 25px 30px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--light-color) 0%, #e9ecef 100%);
}

.card-header h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 30px;
}

/* Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    font-size: 0.95rem;
}

.data-table th,
.data-table td {
    padding: 18px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover {
    background-color: rgba(30, 60, 114, 0.02);
}

.data-table td {
    color: var(--dark-color);
}

/* Alert Styles */
.alert {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 5px solid;
    font-weight: 500;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: var(--danger-color);
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: var(--success-color);
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-color: var(--warning-color);
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: var(--info-color);
}

/* Status Badges */
.status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-submitted { 
    background: linear-gradient(135deg, var(--warning-color) 0%, #ffd54f 100%);
    color: var(--dark-color);
}

.status-bdo_verified, .status-co_verified { 
    background: linear-gradient(135deg, var(--info-color) 0%, #4dc0b5 100%);
    color: white;
}

.status-tahsildar_approved { 
    background: linear-gradient(135deg, var(--success-color) 0%, #38c172 100%);
    color: white;
}

.status-rejected { 
    background: linear-gradient(135deg, var(--danger-color) 0%, #e3342f 100%);
    color: white;
}

.status-completed { 
    background: linear-gradient(135deg, #6f42c1 0%, #a779e9 100%);
    color: white;
}

.status-active { 
    background: linear-gradient(135deg, var(--success-color) 0%, #38c172 100%);
    color: white;
}

.status-inactive { 
    background: linear-gradient(135deg, var(--gray-color) 0%, #a0aec0 100%);
    color: white;
}

.status-pending {
    background: linear-gradient(135deg, var(--warning-color) 0%, #ffd54f 100%);
    color: var(--dark-color);
}

/* Role Badges */
.role-badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-admin { 
    background: linear-gradient(135deg, var(--danger-color) 0%, #e3342f 100%);
    color: white;
}

.role-district { 
    background: linear-gradient(135deg, #6f42c1 0%, #a779e9 100%);
    color: white;
}

.role-bdo { 
    background: linear-gradient(135deg, #fd7e14 0%, #f6993f 100%);
    color: white;
}

.role-co { 
    background: linear-gradient(135deg, #20c997 0%, #38c172 100%);
    color: white;
}

.role-tahsildar { 
    background: linear-gradient(135deg, var(--info-color) 0%, #4dc0b5 100%);
    color: white;
}

.role-applicant { 
    background: linear-gradient(135deg, var(--gray-color) 0%, #a0aec0 100%);
    color: white;
}

/* Application Styles */
.applications-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.application-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 25px;
    background: white;
    transition: var(--transition);
}

.application-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.application-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.application-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
}

.application-details {
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.detail-label {
    font-weight: 600;
    width: 180px;
    color: var(--dark-color);
    min-width: 150px;
}

.detail-value {
    flex: 1;
    color: var(--gray-color);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.detail-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item strong {
    color: var(--dark-color);
    display: block;
    margin-bottom: 5px;
}

.application-actions {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.action-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.application-remarks {
    background: var(--light-color);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border-left: 4px solid var(--info-color);
}

.application-remarks strong {
    color: var(--dark-color);
}

/* Timeline */
.tracker-timeline {
    margin-top: 30px;
    padding: 25px;
    background: var(--light-color);
    border-radius: var(--border-radius);
}

.tracker-timeline h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-marker {
    position: absolute;
    left: -40px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 3px var(--border-color);
    z-index: 2;
}

.timeline-item.completed .timeline-marker {
    background: var(--success-color);
    box-shadow: 0 0 0 3px var(--success-color);
}

.timeline-item.active .timeline-marker {
    background: var(--info-color);
    box-shadow: 0 0 0 3px var(--info-color);
}

.timeline-item.rejected .timeline-marker {
    background: var(--danger-color);
    box-shadow: 0 0 0 3px var(--danger-color);
}

.timeline-item.pending .timeline-marker {
    background: var(--warning-color);
    box-shadow: 0 0 0 3px var(--warning-color);
}

.timeline-content {
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.timeline-content h5 {
    margin: 0 0 8px 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.timeline-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--gray-color);
}

/* Application Tracker */
.applications-tracker {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.application-tracker-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.application-tracker-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.tracker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    flex-wrap: wrap;
    gap: 15px;
}

.tracker-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.tracker-details {
    padding: 30px;
}

.allocation-info, .remarks-info {
    margin-top: 25px;
    padding: 20px;
    background: var(--light-color);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--info-color);
}

.allocation-info h4, .remarks-info h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Error Page */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

.error-content h1 {
    font-size: 4rem;
    color: var(--danger-color);
    margin-bottom: 20px;
    font-weight: 800;
}

.error-content p {
    font-size: 1.3rem;
    color: var(--gray-color);
    margin-bottom: 30px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
    padding: 40px 0;
    margin-top: auto;
}

footer p {
    margin: 10px 0;
    opacity: 0.9;
}

.footer-links {
    margin-top: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--gray-color); }
.text-danger { color: var(--danger-color); }
.text-success { color: var(--success-color); }
.text-warning { color: var(--warning-color); }
.text-info { color: var(--info-color); }
.text-primary { color: var(--primary-color); }

.mb-0 { margin-bottom: 0; }
.mt-0 { margin-top: 0; }
.mb-1 { margin-bottom: 10px; }
.mt-1 { margin-top: 10px; }
.mb-2 { margin-bottom: 20px; }
.mt-2 { margin-top: 20px; }

.p-0 { padding: 0; }
.p-1 { padding: 10px; }
.p-2 { padding: 20px; }
.p-3 { padding: 30px; }

/* Badge */
.badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-info { 
    background: var(--info-color);
    color: white;
}

.badge-warning { 
    background: var(--warning-color);
    color: var(--dark-color);
}

.badge-success { 
    background: var(--success-color);
    color: white;
}

.badge-danger { 
    background: var(--danger-color);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        flex-direction: column;
        width: 100%;
    }
    
    nav a {
        display: block;
        text-align: center;
    }
    
    .user-info {
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.4rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-actions {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .inline-form {
        flex-direction: column;
    }
    
    .inline-form .form-group {
        min-width: 100%;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .application-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tracker-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .detail-row {
        flex-direction: column;
    }
    
    .detail-label {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .activity-item {
        flex-direction: column;
        text-align: center;
    }
    
    .activity-status {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .timeline {
        padding-left: 30px;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-marker {
        left: -30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .login-form {
        padding: 30px 20px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .features-section h2 {
        font-size: 2rem;
    }
    
    .dashboard-header h1 {
        font-size: 2rem;
    }
}

/* Print Styles */
@media print {
    header, footer, nav, .btn {
        display: none;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .data-table {
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* Additional CSS for new components */

/* Notification Badge */
.notification-badge {
    position: relative;
    display: inline-block;
}

.notification-badge .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 0.7rem;
    padding: 3px 6px;
    border-radius: 10px;
}

/* Print Styles for Reports */
@media print {
    .page-header .btn,
    .card-header .btn,
    nav,
    footer {
        display: none !important;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
    
    .stats-grid {
        display: none !important;
    }
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tooltips */
.tooltip {
    position: absolute;
    background: var(--dark-color);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    z-index: 1000;
    white-space: nowrap;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--dark-color) transparent transparent transparent;
}

/* Responsive Tables */
.table-responsive {
    overflow-x: auto;
}

@media (max-width: 768px) {
    .data-table {
        font-size: 0.8rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 8px;
    }
}

/* Form Validation Styles */
input:invalid, select:invalid, textarea:invalid {
    border-color: var(--danger-color);
}

input:valid, select:valid, textarea:valid {
    border-color: var(--success-color);
}

.error-message {
    color: var(--danger-color);
    font-size: 0.9rem;
    margin-top: 5px;
}

.success-message {
    color: var(--success-color);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Custom Checkboxes and Radios */
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.form-check-input {
    width: 18px;
    height: 18px;
}

.form-check-label {
    margin: 0;
}

/* File Upload Styles */
.file-upload {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.file-upload:hover {
    border-color: var(--primary-color);
}

.file-upload i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Search Box */
.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-box input {
    padding-left: 40px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-color);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--dark-color);
}

.pagination a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
/* Login Options */
.login-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.option-card {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    background: #f9f9f9;
}

.option-card h3 {
    margin-top: 0;
    color: #333;
}

.option-card p {
    color: #666;
    margin-bottom: 15px;
}

.back-link {
    display: inline-block;
    margin-bottom: 15px;
    color: #007bff;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.resend-otp {
    text-align: center;
    margin-top: 15px;
}

.btn-link {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    text-decoration: underline;
}

.btn-link:hover {
    color: #0056b3;
}

/* Responsive */
@media (max-width: 768px) {
    .login-options {
        grid-template-columns: 1fr;
    }
}