/* Main Styling */
:root {
    --primary-color: #0a4275;
    --secondary-color: #f8f9fa;
    --accent-color: #ffc107;
    --text-color: #343a40;
    --light-color: #ffffff;
    --dark-color: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navbar Styling */
.navbar {
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Card Styling */
.card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border: none;
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    border-radius: 10px 10px 0 0 !important;
    padding: 15px 20px;
    font-weight: bold;
}

.card-body {
    padding: 20px;
}

/* Form Styling */
.form-control {
    border-radius: 5px;
    padding: 10px 15px;
    border: 1px solid #ced4da;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(10, 66, 117, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 5px;
}

.required::after {
    content: "*";
    color: #dc3545;
    margin-left: 4px;
}

/* Button Styling */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #073559;
    border-color: #073559;
}

.btn {
    border-radius: 5px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s;
}

/* Homepage Styling */
.hero-section {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
    border-radius: 10px;
}

.hero-section h1 {
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.feature-card {
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Profile and Application Styling */
.profile-header {
    background-color: var(--primary-color);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.application-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    text-align: center;
    min-width: 100px;
}

.status-pending {
    background-color: #ffc107;
    color: #212529;
}

.status-approved {
    background-color: #28a745;
    color: white;
}

.status-rejected {
    background-color: #dc3545;
    color: white;
}

/* Admin Dashboard */
.stats-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stats-title {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* Table Styling */
.table {
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.table thead {
    background-color: var(--primary-color);
    color: white;
}

.table thead th {
    font-weight: 500;
    border: none;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Permit Styling */
.permit-container {
    border: 2px solid #000;
    padding: 20px;
    position: relative;
    margin: 30px 0;
    background-color: #fff;
}

.permit-header {
    text-align: center;
    margin-bottom: 20px;
}

.permit-logo {
    max-width: 80px;
    margin-bottom: 10px;
}

.permit-title {
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.permit-subtitle {
    font-size: 1rem;
    margin-bottom: 15px;
}

.permit-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.signature-line {
    border-top: 1px solid #000;
    width: 200px;
    margin-top: 50px;
    text-align: center;
    font-weight: bold;
}

/* Media Queries */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 20px;
    }
    
    .profile-header {
        padding: 20px;
    }
    
    .permit-container {
        padding: 15px;
    }
    
    .table-responsive {
        overflow-x: auto;
    }
}

/* Photo Upload Preview */
.photo-upload-preview {
    max-width: 200px;
    max-height: 200px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 10px;
}

/* Custom Loader */
.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
