/* TRESWO - Main Stylesheet */

:root {
    --primary-blue: #1e3a8a;
    --secondary-blue: #3b82f6;
    --accent-gold: #d4af37;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
}

a:hover {
    color: #fff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Landing Page */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.navbar {
    background-color: var(--primary-blue);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: white !important;
    text-decoration: none;
}

.logo span {
    color: var(--accent-gold);
}

.btn-primary {
    background-color: var(--secondary-blue);
    border-color: var(--secondary-blue);
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 5px;
}

.btn-primary:hover {
    background-color: var(--dark-gray);
    border-color: var(--dark-gray);
}

.btn-outline-light {
    border-color: white;
    color: white;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--primary-blue);
}

.btn-header .btn {
    display: flex;
    align-items: center;
    height: 45px;
    padding: 0 25px;
}

.hero-section {
    background: linear-gradient(rgba(30, 58, 138, 0.85), rgba(30, 58, 138, 0.9)), url('../images/bg-hero.jpg') no-repeat center center/cover;
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.hero-buttons .btn {
    margin: 5px 10px;
    min-width: 200px;
    height: 50px;
    border-width: 2px;
    line-height: 43px;
    padding: 0;
}

.about-section p {
    font-size: 1.25rem;
    color: var(--dark-gray);
}

.section-title {
    text-align: left;
    margin-bottom: 15px;
    position: relative;
    font-size: 26px;
    color: var(--primary-blue);
}

.section-title:after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background-color: var(--accent-gold);
    margin: 6px;
}

.service-card {
    border: none;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    background-color: var(--primary-blue);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    font-size: 1.8rem;
}

.mission-vision-section {
    background-color: var(--light-gray);
    padding: 80px 0;
}

.mission-box,
.vision-box,
.values-box {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.values-list {
    list-style-type: none;
    padding-left: 0;
}

.values-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.values-list li:last-child {
    border-bottom: none;
}

.values-list li i {
    color: var(--accent-gold);
    margin-right: 10px;
}

.contact-section {
    padding: 80px 0;
}

.contact-info {
    margin-top: 30px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-item a {
    color: var(--dark-gray);
    font-size: 20px;
    text-decoration: none;
    font-weight: 600;
}

.contact-icon {
    background-color: var(--primary-blue);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

footer {
    background-color: var(--primary-blue);
    color: white;
    padding: 40px 0 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }

    .hero-section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* Login */
body.body-login {
    background: linear-gradient(135deg, #4d63c2 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.login-container {
    max-width: 400px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 0px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.login-header {
    background: #4d63c2;
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.login-header h2 {
    margin: 0;
    font-weight: 600;
}

.login-header p {
    margin: 5px 0 0;
    opacity: 0.9;
}

.login-body {
    padding: 30px;
}

.login-body input {
    height: 50px;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.btn-login {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border: none;
    padding: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.login-footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #eee;
    color: #666;
}

.login-footer a {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

.form-check-input[type=checkbox] {
    width: 18px;
    height: 18px;
    padding: 0;
}

/* Register */
.register-container {
    max-width: 650px;
    margin: 25px auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.register-header {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.register-header h2 {
    margin: 0;
    font-weight: 600;
}

.register-header p {
    margin: 5px 0 0;
    opacity: 0.9;
}

.register-body {
    padding: 30px;
}

.form-control:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

.btn-register {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
    border: none;
    padding: 12px;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s ease;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 135, 84, 0.3);
}

.register-footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #eee;
    color: #666;
}

.register-footer a {
    color: #198754;
    text-decoration: none;
    font-weight: 500;
}

.register-footer a:hover {
    text-decoration: underline;
}

.password-strength {
    height: 5px;
    margin-top: 5px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.strength-weak {
    background-color: #dc3545;
    width: 25%;
}

.strength-medium {
    background-color: #ffc107;
    width: 50%;
}

.strength-strong {
    background-color: #198754;
    width: 100%;
}

.register-section {
    flex: 1;
    width: 100%;
    background: white;
    border-radius: 15px;
    border: 1px solid #DDD;
    background-color: #EEE;
    padding: 30px;
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

.qr-container {
    text-align: center;
    margin-bottom: 0px;
}

.qr-placeholder {
    width: 220px;
    height: 220px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #7b8a8b;
    border: 2px dashed #bdc3c7;
}

.qr-placeholder i {
    font-size: 60px;
    margin-bottom: 15px;
    color: #3498db;
}

.upi-button {
    display: block;
    width: 100%;
    padding: 16px;
    background: linear-gradient(to right, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    text-align: center;
    text-decoration: none;
}

.upi-button:hover {
    background: linear-gradient(to right, #2980b9, #1c6ea4);
    box-shadow: 0 5px 15px rgba(41, 128, 185, 0.3);
}

.upi-button i {
    margin-right: 10px;
}

.transaction-id-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.id-generator {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.id-display {
    display: flex;
    gap: 10px;
}

.id-input {
    flex: 1;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    letter-spacing: 2px;
    color: #2c3e50;
    height: 50px;
    background-color: #f8f9fa;
    margin: 0;
}

.copy-btn {
    padding: 0 25px;
    background: linear-gradient(to right, #2ecc71, #27ae60);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.copy-btn:hover {
    background: linear-gradient(to right, #27ae60, #219653);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.copy-btn.copied {
    background: linear-gradient(to right, #9b59b6, #8e44ad);
}

.refresh-btn {
    align-self: flex-start;
    padding: 10px 20px;
    background-color: #f8f9fa;
    color: #3498db;
    border: 2px solid #3498db;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.refresh-btn:hover {
    background-color: #3498db;
    color: white;
}

.instructions {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 15px;
}

.instructions h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.instructions ol {
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 8px;
    color: #555;
}

.instructions strong {
    color: #e74c3c;
}

.upload-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-top: 20px;
}

.upload-container {
    border: 2px dashed #bdc3c7;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-container:hover {
    border-color: #3498db;
    background-color: #f0f7ff;
}

.upload-icon {
    font-size: 50px;
    color: #3498db;
    margin-bottom: 15px;
}

.upload-text {
    margin-bottom: 20px;
    color: #7f8c8d;
}

.upload-btn {
    padding: 12px 30px;
    background: linear-gradient(to right, #9b59b6, #8e44ad);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.upload-btn:hover {
    background: linear-gradient(to right, #8e44ad, #7d3c98);
    box-shadow: 0 5px 15px rgba(155, 89, 182, 0.3);
}

.file-list {
    margin-top: 20px;
    display: none;
}

.file-list.show {
    display: block;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
}

.file-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-name i {
    color: #3498db;
}

.file-size {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.remove-file {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 1.2rem;
}

.footer-note {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    color: #7f8c8d;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
}

.qr-placeholder img {
    width: 100%;
    padding: 10px;
    border-radius: 15px;
}

.left-section {
    border-bottom: 1px solid #ddd;
    padding-bottom: 25px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .main-section {
        flex-direction: column;
    }

    .id-display {
        flex-direction: column;
    }

    .copy-btn {
        padding: 15px;
    }

    .header h1 {
        font-size: 2rem;
    }
}

/* Dashboard */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    background: linear-gradient(180deg, #2c3e50 0%, #1a2530 100%);
    color: white;
    padding-top: 20px;
    box-shadow: 3px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.sidebar-brand {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.sidebar-brand h3 {
    margin: 0;
    color: white;
    font-weight: 600;
}

.sidebar-brand p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin: 5px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: #0d6efd;
}

.sidebar-menu a.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-left-color: #0d6efd;
}

.sidebar-menu i {
    margin-right: 10px;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.dash-content {
    margin-left: 250px;
    padding: 20px;
    min-height: 100vh;
    background-color: #f8f9fa;
}

.navbar-top {
    background: white;
    padding: 15px 20px;
    margin: -20px -20px 20px -20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: none;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.stat-icon.profile {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stat-icon.user {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
    color: white;
}

.stat-icon.activity {
    background: linear-gradient(135deg, #fd7e14 0%, #e8590c 100%);
    color: white;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    margin: 10px 0;
}

.activity-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.activity-item:hover {
    background-color: #f8f9fa;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.activity-icon.login {
    background: linear-gradient(135deg, #0dcaf0 0%, #0aa2c0 100%);
    color: white;
}

.activity-icon.register {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
    color: white;
}

.activity-icon.create {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    color: white;
}

.activity-icon.update {
    background: linear-gradient(135deg, #ffc107 0%, #e6ac00 100%);
    color: white;
}

.activity-time {
    font-size: 0.85rem;
    color: #6c757d;
}

@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }

    .sidebar-brand h3,
    .sidebar-brand p,
    .menu-text {
        display: none;
    }

    .sidebar-menu a {
        justify-content: center;
        padding: 15px 0;
    }

    .sidebar-menu i {
        margin-right: 0;
        font-size: 1.5rem;
    }

    .dash-content {
        margin-left: 70px;
    }
}

/* Profile Create */
.section {
    background: #ffffff;
    max-width: 100%;
    margin: 20px auto;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.section h2 {
    color: #2c3e50;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 2px solid #1b3b1b;
    padding-bottom: 10px;
}

.section h3 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}


label {
    display: block;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 8px 12px;
    margin-top: 5px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    box-sizing: border-box;
    height: 45px;
}

input:focus,
select:focus,
textarea:focus {
    border: 2px solid #0066cc !important;
    outline: none;
}

textarea {
    height: 85px;
}

.army-blocks {
    display: flex;
    gap: 10px;
    margin-top: 0px;
}

.army-blocks input {
    text-align: center;
    font-size: 16px;
    letter-spacing: 2px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.prefix-box {
    width: 25%;
}

.number-box {
    width: 50%;
}

.suffix-box {
    width: 25%;
}

.family-box {
    border: 1px solid #2c3e50;
    background: #f7f4d1;
    padding: 15px;
    margin-top: 10px;
    border-radius: 8px;
    position: relative;
}

.aadhaar-blocks,
.echs-blocks {
    display: flex;
    gap: 10px;
}

.aadhaar-blocks input,
.echs-blocks input {
    width: 33%;
    text-align: center;
}

@media (max-width: 768px) {
    .main-content {
        margin-left: 70px;
    }

    .form-row {
        flex-direction: column;
    }

    .army-blocks,
    .aadhaar-blocks,
    .echs-blocks {
        flex-wrap: wrap;
    }
}

/* Family Dependents Styling */
.family-member-section {
    border: 1px solid #2c3e50;
    background: #f7f4d1;
    padding: 15px;
    margin-top: 10px;
    border-radius: 8px;
    position: relative;
}

.family-member-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1b3b1b;
}

.family-member-header h4 {
    margin: 0;
    color: #1b3b1b;
    font-size: 16px;
}

.btn-remove-member {
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-remove-member:hover {
    background: #c0392b;
}

.btn-add-member {
    background: #1b3b1b;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s;
}

.btn-add-member:hover {
    background: #145214;
}

.family-divider {
    border: none;
    border-top: 1px dashed #ccc;
    margin: 20px 0;
}

/* Aadhaar blocks for family members */
.aadhaar-blocks {
    display: flex;
    align-items: center;
    gap: 5px;
}

.aadhaar-blocks input {
    text-align: center;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.aadhaar-blocks span {
    color: #666;
}

/* Pay and Allowances Styling */
.pay-results-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #dee2e6;
}

.btn-calculate {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 135, 84, 0.3);
}

.btn-small {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 10px;
}

.btn-small:hover {
    background: #5a6268;
}

.pay-breakdown {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.pay-breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dotted #dee2e6;
}

.pay-breakdown-item:last-child {
    border-bottom: none;
}

.pay-breakdown-item.total {
    font-weight: bold;
    color: #1b3b1b;
    border-bottom: 2px solid #1b3b1b;
}

.pay-breakdown-item.net-total {
    font-size: 18px;
    color: #198754;
    border-top: 2px solid #198754;
    padding-top: 15px;
    margin-top: 10px;
}

/* Currency input styling */
input[type="checkbox"] {
    width: 15px;
    height: 15px;
    display: inline;
    margin: 0;
    padding: 0;
}

/* Readonly input styling */
input[readonly] {
    background-color: #f8f9fa !important;
    cursor: not-allowed;
    border-color: #ced4da;
}

/* Pay and Allowances Styling */
.pay-field {
    background-color: #fff;
}

.pay-field:focus {
    border-color: #1b3b1b;
    box-shadow: 0 0 0 0.2rem rgba(27, 59, 27, 0.25);
}

.pay-result {
    background-color: #f8f9fa !important;
    font-weight: bold !important;
    color: #1b3b1b !important;
    border: 2px solid #1b3b1b !important;
}

/* Read-only pay result fields */
input[readonly].pay-result {
    cursor: not-allowed;
    opacity: 0.9;
}

/* View Page */
.main-content {
    margin: 0 auto;
    padding: 20px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #007bff;
}

.page-title {
    color: #2c3e50;
    font-weight: 600;
}

.btn-add {
    background: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-add:hover {
    background: #218838;
    color: white;
    text-decoration: none;
}

/* Filter Panel Styles */
.filter-panel {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filter-title {
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
}

.filter-actions {
    display: flex;
    gap: 10px;
}

.search-box {
    position: relative;
    flex: 1;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.search-box input {
    padding-left: 40px;
    border-radius: 5px;
    width: 400px;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.filter-group {
    margin-bottom: 0;
}

.filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    display: block;
}

.filter-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    font-size: 14px;
}

/* Table Styles */
.profile-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dataTables_wrapper {
    padding: 0;
}

.dataTables_length,
.dataTables_filter {
    padding: 20px 20px 10px;
}

.dataTables_info {
    padding: 10px 20px;
}

.dataTables_paginate {
    padding: 10px 20px;
}

.table thead {
    background: #2c3e50;
    color: white;
}

.table th {
    border: none;
    padding: 15px;
    font-weight: 600;
}

.table td {
    padding: 12px;
    vertical-align: middle;
    border-color: #f1f1f1;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-action {
    width: 36px;
    height: 36px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-view {
    background: #17a2b8;
}

.btn-view:hover {
    background: #138496;
    color: white;
}

.btn-edit {
    background: #ffc107;
}

.btn-edit:hover {
    background: #e0a800;
    color: white;
}

.btn-delete {
    background: #dc3545;
    border: none;
}

.btn-delete:hover {
    background: #c82333;
    color: white;
}

/* Badge Styles */
.service-badge {
    background: #e8f4ff;
    color: #0066cc;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.gender-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.gender-male {
    background: #e3f2fd;
    color: #1976d2;
}

.gender-female {
    background: #fce4ec;
    color: #c2185b;
}

.gender-other {
    background: #f3e5f5;
    color: #7b1fa2;
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 20px;
    color: #dee2e6;
}

/* Summary Stats */
.stats-card {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    height: 100%;
}

.stats-card:hover {
    transform: translateY(-5px);
}

/* Modal styles */
.modal-confirm {
    color: #636363;
}

.modal-confirm .modal-content {
    border-radius: 8px;
    border: none;
}

.modal-confirm .modal-header {
    border-bottom: none;
    position: relative;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.modal-confirm .modal-body {
    padding: 30px;
    text-align: center;
}

.modal-confirm .modal-footer {
    border: none;
    text-align: center;
    justify-content: center;
    padding: 20px;
}

.modal-confirm .icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    background: #f8d7da;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.modal-confirm .icon-box i {
    font-size: 36px;
    color: #dc3545;
}

.modal-confirm h4 {
    font-weight: 600;
    margin-bottom: 10px;
}

.modal-confirm .btn-confirm {
    background: #dc3545;
    color: white;
    padding: 10px 30px;
    border-radius: 5px;
    border: none;
}

.modal-confirm .btn-confirm:hover {
    background: #c82333;
}

.modal-confirm .btn-cancel {
    background: #6c757d;
    color: white;
    padding: 10px 30px;
    border-radius: 5px;
    border: none;
}

.modal-confirm .btn-cancel:hover {
    background: #5a6268;
}

/* Active filter badge */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.filter-badge {
    background: #007bff;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-badge .remove {
    cursor: pointer;
    font-size: 14px;
}

/* Export buttons */
.dt-buttons .btn {
    border-radius: 5px;
    font-size: 14px;
    padding: 6px 12px;
}

.dt-buttons .btn-secondary {
    background: #6c757d;
    border: none;
}

.dt-buttons .btn-secondary:hover {
    background: #5a6268;
}


/* Detail View Page */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-bg: #f8f9fa;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 10px;
}

.profile-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.profile-header {
    background: #222f3d;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.profile-title {
    color: white;
    font-weight: 700;
    margin-bottom: 5px;
}

.profile-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
}

.profile-actions {
    display: flex;
    gap: 15px;
    margin-top: 0px;
    justify-content: flex-end;
}

.btn-back {
    background: #6c757d;
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-back:hover {
    background: #5a6268;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-edit {
    background: var(--secondary-color);
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-edit:hover {
    background: #2980b9;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Card Styles */
.info-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 25px;
    border: 1px solid #ddd;
    /* box-shadow: var(--card-shadow); */
    transition: transform 0.3s;
}


.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 8px !important;
    background: #f3f3f3;
    border: none;
}

.card-icon {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
    margin: 0 0 20px 0;
    font-size: 20px;
}

.info-card .card-title {
    margin: 0px 0;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.info-item {
    margin-bottom: 0px;
}

.info-label {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    display: block;
}

.info-value {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 500;
    line-height: 1.5;
}

.info-value a {
    color: var(--secondary-color);
    text-decoration: none;
}

.info-value a:hover {
    text-decoration: underline;
}

/* Badge Styles */
.info-badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-right: 8px;
    margin-bottom: 8px;
}

.badge-primary {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-warning {
    background: #fff3e0;
    color: #f57c00;
}

.badge-danger {
    background: #ffebee;
    color: #d32f2f;
}

.badge-info {
    background: #e8f4ff;
    color: #0066cc;
}

/* Service Badge */
.service-badge-lg {
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 15px;
}

/* Address Card */
.address-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
}

.address-card .card-title {
    color: white;
}

.address-card .info-label {
    color: rgba(255, 255, 255, 0.8);
}

.address-card .info-value {
    color: white;
}

/* Family Member Card */
.family-card {
    background: #f1f1f1;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

.family-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.family-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.family-relation {
    background: var(--light-bg);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.family-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    font-size: 14px;
}

/* Pay Details */
.pay-summary {
    background: linear-gradient(135deg, #859ce6 0%, #5767f5 100%);
    color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
}

.pay-summary .card-title {
    color: white;
}

.pay-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pay-item:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 18px;
}

/* Photo Placeholder */
.photo-placeholder {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    margin: 0 auto 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Status Badges */
.status-active {
    background: #d4edda;
    color: #155724;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-container {
        padding: 10px;
    }

    .profile-header {
        padding: 20px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .profile-actions {
        flex-direction: column;
    }

    .btn-back,
    .btn-edit {
        width: 100%;
        justify-content: center;
    }

    .family-details {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {

    .profile-actions,
    .btn-back,
    .btn-edit {
        display: none !important;
    }

    .info-card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
        page-break-inside: avoid;
    }
}

.dataTables_length,
.dataTables_filter {
    display: none !important;
}

.dataTables_wrapper .row:first-child {
    display: flex !important;
    padding: 10px;
}

.stats-card .card-title {
    color: #fff;
}

/* User Management */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    background: linear-gradient(180deg, #2c3e50 0%, #1a2530 100%);
    color: white;
    padding-top: 20px;
    box-shadow: 3px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.sidebar-brand {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.sidebar-brand h3 {
    margin: 0;
    color: white;
    font-weight: 600;
}

.sidebar-brand p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin: 5px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: #0d6efd;
}

.sidebar-menu a.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-left-color: #0d6efd;
}

.sidebar-menu i {
    margin-right: 10px;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.main-content {
    margin-left: 250px;
    padding: 20px;
    min-height: 100vh;
    background-color: #f8f9fa;
}

.navbar-top {
    background: white;
    padding: 15px 20px;
    margin: -20px -20px 20px -20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.page-header {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* .user-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #0d6efd;
} 

.user-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.user-card.admin {
    border-left-color: #198754;
} */

.user-card.inactive {
    border-left-color: #6c757d;
    opacity: 0.8;
}

.role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.role-badge.admin {
    background: #198754;
    color: white;
}

.role-badge.user {
    background: #0d6efd;
    color: white;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.active {
    background: #d1e7dd;
    color: #0f5132;
}

.status-badge.inactive {
    background: #f8d7da;
    color: #842029;
}

.btn-reset {
    background: #ffc107;
    border: none;
    color: #212529;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    background: #e0a800;
    transform: translateY(-1px);
}

.btn-reset:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.no-users {
    text-align: center;
    padding: 50px 20px;
    color: #6c757d;
}

.no-users i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #dee2e6;
}

div#dataUsers_wrapper .dt-length {
    display: flex;
}

div.dt-container div.dt-search {
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }

    .sidebar-brand h3,
    .sidebar-brand p,
    .menu-text {
        display: none;
    }

    .sidebar-menu a {
        justify-content: center;
        padding: 15px 0;
    }

    .sidebar-menu i {
        margin-right: 0;
        font-size: 1.5rem;
    }

    .main-content {
        margin-left: 70px;
    }
}

/* Reuse styles from create.php with some enhancements */
.section {
    margin: 0;
    margin-bottom: 20px;
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section h2 {
    color: #2c3e50;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 600;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.form-row>div {
    flex: 1;
    min-width: 220px;
}

label {
    display: block;
    margin-bottom: 6px;
    color: #495057;
}

input,
select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    transition: border 0.3s;
}

input:focus,
select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
    outline: none;
}

.army-blocks,
.aadhaar-blocks,
.echs-blocks {
    display: flex;
    gap: 8px;
    align-items: center;
}

.prefix-box,
.suffix-box {
    width: 30%;
    text-align: center;
}

.number-box {
    width: 140px;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0069d9, #004a9f);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-add-member {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-add-member:hover {
    background: linear-gradient(135deg, #218838, #155724);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Existing Family Member Styles */
.existing-family-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

.existing-family-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.existing-family-title {
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
}

.family-count-badge {
    background: #007bff;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.existing-family-member {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
}

.family-member-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.member-title {
    color: #2c3e50;
    font-weight: 600;
    margin: 0;
    font-size: 18px;
}

.remove-member-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.remove-member-btn:hover {
    background: #c82333;
}

.family-member-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

/* New Family Member Section */
.new-family-section {
    background: #e8f4ff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    border: 2px dashed #007bff;
}

.new-family-header {
    text-align: center;
    margin-bottom: 20px;
}

.new-family-title {
    color: #007bff;
    font-weight: 600;
    margin: 0;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}
td .action-buttons {
    margin-top: 0px;
    padding-top: 0px;
}
input[readonly] {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

.required::after {
    content: " *";
    color: #dc3545;
}

.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #007bff;
}

.page-title {
    color: #2c3e50;
    font-weight: 700;
    margin: 0;
}

.page-subtitle {
    color: #6c757d;
    font-size: 14px;
    margin-top: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .form-row>div {
        min-width: 100%;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .army-blocks,
    .aadhaar-blocks,
    .echs-blocks {
        flex-wrap: wrap;
    }
}

.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-download {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background-color: #bb2d3b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.btn-download:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.profile-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.user-card.admin {
    display: none !important;
}
.form-control {
    margin: 0;
}
@media print {

    .sidebar,
    .navbar-top,
    .profile-actions {
        display: none !important;
    }

    .dash-content {
        margin: 0 !important;
        padding: 0 !important;
    }

    body {
        background: white !important;
    }
}