﻿/* Custom Styles */

/* Font Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header Styles */
.header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0;
}

.header .logo {
    font-size: 24px;
    font-weight: normal;
    color: #0066cc;
}

/* Sidebar Styles */
.sidebar {
    width: 200px;
    background-color: #f8f9fa;
    border-right: 1px solid #e0e0e0;
    padding: 20px 0;
    height: calc(100vh - 60px);
    position: fixed;
    left: 0;
    top: 60px;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    padding: 10px 20px;
}

.sidebar ul li a {
    text-decoration: none;
    color: #333;
    display: block;
}

.sidebar ul li.active {
    background-color: #0066cc;
}

.sidebar ul li.active a {
    color: #fff;
}

/* Main Content Styles */
.main-content {
    margin-left: 200px;
    padding: 20px;
    min-height: calc(100vh - 60px);
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: normal;
}

/* Button Styles */
.btn-primary {
    background-color: #0066cc;
    border-color: #0066cc;
}

.btn-primary:hover {
    background-color: #0052a3;
    border-color: #0052a3;
}

/* Card Styles */
.card {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Login Page Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f5f5f5;
}

.login-form {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 30px;
    width: 400px;
}

/* Register Page Styles */
.register-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f5f5f5;
    padding: 20px;
}

.register-form {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 30px;
    width: 500px;
}

/* Dashboard Styles */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dashboard-header h1 {
    font-size: 24px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
}

.stat-card h3 {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.stat-card .value {
    font-size: 24px;
    font-weight: bold;
    color: #0066cc;
}

/* Add Policy Page Styles */
.add-policy-form {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 30px;
}

.add-policy-form h2 {
    margin-bottom: 20px;
    font-size: 20px;
}

.add-policy-form .form-actions {
    text-align: right;
    margin-top: 30px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        top: 0;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .main-content {
        margin-left: 0;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .login-form,
    .register-form {
        width: 100%;
        max-width: 400px;
    }
}