/* Combined FCTWEI Styles */

/* ==================== General/Common Styles ==================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    background-color: #f8f9fa;
}

.logo {
    width: 80px;
    height: auto;
    background-color: white;
    padding: 5px;
    border-radius: 4px;
}

/* ==================== Sign In Page Styles ==================== */
body.signin-page {
    height: 100vh;
    background-color: inherit;
}

.bg-image {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 100%;
}

.signin-container {
    min-height: 100vh;
}

.left-side {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.left-side::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.logo-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.form-container {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.form-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.form-subtitle {
    color: #6c757d;
    margin-bottom: 2rem;
}

.form-control {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

/* Dashboard specific form-control */
body.dashboard-page .form-control {
    margin-bottom: 0px;
}

.btn-sign-in {
    padding: 0.75rem 1rem;
    background-color: #0d6efd;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    margin-top: 1rem;
}

.sign-up-link {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 600;
}

.sign-up-link:hover {
    text-decoration: underline;
}

/* ==================== Dashboard Styles ==================== */
body.dashboard-page {
    background-color: #f8f9fa;
}

.wrapper {
    display: flex;
    width: 100%;
}

/* Sidebar Styles */
#sidebar {
    width: 230px;
    min-height: 100vh;
    background-color: #f8f9fa;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 999;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #dee2e6;
}

#sidebar.active {
    margin-left: -230px;
}

#sidebar.inactive {
    margin-left: -230px;
}

#content {
    width: calc(100% - 230px);
    margin-left: 230px;
    transition: all 0.3s;
    min-height: 100vh;
}

#content.active {
    width: 100%;
    margin-left: 0;
}

#content.full-width {
    width: 100%;
    margin-left: 0;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.sidebar-header .logo {
    width: 40px;
    height: 40px;
    background-color: transparent;
    padding: 0;
}

.admin-section {
    padding: 0 15px;
}

.admin-title {
    color: #6c757d;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    padding-left: 20px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s;
    border-radius: 4px;
}

.sidebar-menu li a:hover {
    background-color: #e9ecef;
    color: #198754;
}

.sidebar-menu li.active a {
    background-color: #e9ecef;
    color: #28a745;
    font-weight: 500;
}

.sidebar-menu li a i {
    width: 20px;
    margin-right: 10px;
}

.sidebar-footer {
    margin-top: auto;
    padding: 1.5rem;
    border-top: 1px solid #eee;
    font-size: 0.8rem;
    color: #6c757d;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.logo-small {
    width: 30px;
    height: auto;
    margin-right: 0.5rem;
}

/* Top Navigation Bar */
.top-navbar {
    background-color: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    padding: 0;
    margin-bottom: 30px;
    min-height: 60px;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 20px;
    gap: 20px;
}

/* Date Section */
.date-section {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.date-display {
    display: flex;
    align-items: center;
}

.date-section .calendar-icon,
.calendar-icon {
    color: #28a745;
    font-size: 18px;
    margin-right: 0.5rem;
}

.current-date {
    font-weight: 500;
}

/* Search Bar */
.search-wrapper {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-container {
    max-width: 500px;
}

.search-wrapper .form-control {
    border-radius: 20px;
    padding: 8px 20px 8px 40px;
    border: 1px solid #dee2e6;
    height: 40px;
    font-size: 14px;
}

.search-wrapper .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.input-group-text {
    height: 50px;
}

/* User Section */
.user-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info {
    font-weight: 500;
}

.welcome-text {
    color: #6c757d;
    font-weight: normal;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #dc3545;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Content Cards */
.card {
    border-radius: 12px;
    overflow: hidden;
}

.card-title {
    font-weight: 600;
}

.events-card {
    background-color: #e8f5e9;
    background-image: url('cam.png');
    background-size: cover;
    background-position: center;
}

.events-card .content-overlay {
    background: linear-gradient(45deg, rgba(232, 245, 233, 0.2), rgba(232, 245, 233, 0.2));
    height: 100%;
    width: 100%;
    padding: 30px;
}

.events-card h3 {
    color: #2e7d32;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Events List Styles */
.events-list {
    list-style: none;
    padding-left: 0;
    padding: 0;
}

.events-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 1rem;
    color: #1b5e20;
}

.events-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2e7d32;
    font-size: 1.2rem;
}

.event-image {
    max-height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

/* Members Card Styles */
.members-card {
    background-color: #fff;
}

.members-card .total-count {
    font-size: 3.5rem;
    font-weight: 700;
    color: #212529;
    line-height: 1;
}

.total-members {
    font-weight: 700;
}

.chart-container {
    width: 120px;
    height: 120px;
}

.donut-chart {
    width: 120px;
    height: 120px;
}

.see-more-link {
    color: #28a745;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.see-more-link:hover {
    color: #1e7e34;
    text-decoration: underline;
}

/* Table Styles */
.table {
    margin-bottom: 0;
}

.table th {
    color: #6c757d;
    font-weight: 600;
    font-size: 14px;
    border-top: none;
    border-bottom-width: 1px;
}

.table td {
    vertical-align: middle;
    color: #212529;
    font-size: 14px;
}

/* Pagination Styles */
.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.page-info {
    color: #6c757d;
}

.pagination-controls .btn {
    padding: 0.375rem 0.75rem;
}

/* ==================== Media Queries ==================== */

/* Sign In Page Responsive */
@media (max-width: 991px) {
    .left-side {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .form-container {
        padding: 1.5rem;
    }
    
    .form-title {
        font-size: 2rem;
    }
}

/* Dashboard Responsive */
@media (max-width: 991px) {
    #sidebar {
        margin-left: -230px;
    }
    
    #sidebar.active {
        margin-left: 0;
    }
    
    #content {
        width: 100%;
        margin-left: 0;
    }
    
    #content.active {
        margin-left: 230px;
        width: calc(100% - 230px);
    }

    .navbar-content {
        flex-wrap: nowrap;
        padding: 10px;
    }

    .search-wrapper {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .navbar-content {
        padding: 10px;
        gap: 10px;
    }

    .search-wrapper {
        max-width: 200px;
    }

    .events-card .content-overlay {
        padding: 20px;
    }

    .members-card .total-count {
        font-size: 2.5rem;
    }

    .event-image {
        margin-top: 1.5rem;
        max-height: 140px;
    }
}

@media (max-width: 576px) {
    .navbar-content {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .date-section {
        order: 1;
        width: 50%;
    }

    .user-section {
        order: 2;
        width: 50%;
        justify-content: flex-end;
    }

    .search-wrapper {
        order: 3;
        width: 100%;
        margin-top: 10px;
        max-width: none;
    }

    .search-wrapper .form-control {
        padding: 6px 15px 6px 35px;
        font-size: 13px;
    }

    .user-section span.d-none {
        display: none !important;
    }

    .user-info .welcome-text {
        display: none;
    }

    .table td {
        font-size: 13px;
    }

    .table td:nth-child(4) {
        display: none;
    }

    .table th:nth-child(4) {
        display: none;
    }
}


/* ==================== Members Page Styles ==================== */
    .add-member-btn {
        background-color: #28a745;
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 6px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transition: background-color 0.3s;
    }

    .add-member-btn:hover {
        background-color: #218838;
        color: white;
    }

    .member-search {
        position: relative;
        margin-bottom: 20px;
    }

    .member-search .form-control {
        padding-left: 40px;
        border-radius: 8px;
        border: 1px solid #dee2e6;
        height: 45px;
    }

    .member-search .search-icon {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #6c757d;
    }

    .status-badge {
        padding: 5px 12px;
        border-radius: 15px;
        font-size: 13px;
        font-weight: 500;
    }

    .status-free {
        background-color: #d4edda;
        color: #155724;
    }

    .status-busy {
        background-color: #f8d7da;
        color: #721c24;
    }

    .action-icons {
        display: flex;
        gap: 15px;
    }

    .action-icon {
        color: #28a745;
        font-size: 18px;
        cursor: pointer;
        transition: color 0.3s;
    }

    .action-icon:hover {
        color: #218838;
    }

    .members-table th {
        background-color: #f8f9fa;
        font-weight: 600;
        color: #495057;
        border-bottom: 2px solid #dee2e6;
        padding: 12px;
    }

    .members-table td {
        padding: 15px 12px;
        vertical-align: middle;
    }

    .members-table tbody tr:hover {
        background-color: #f8f9fa;
    }

    .page-title {
        font-size: 24px;
        font-weight: 600;
        margin-bottom: 10px;
    }

    .page-subtitle {
        color: #6c757d;
        margin-bottom: 30px;
    }

@media (max-width: 768px) {
    .member-actions {
        flex-direction: column;
        gap: 15px;
    }

    .add-member-btn {
        width: 100%;
        justify-content: center;
    }

    .members-table {
        font-size: 14px;
    }

    .action-icons {
        gap: 10px;
    }

    .hide-mobile {
        display: none;
    }
}
    

/* ==================== View Member ==================== */
.member-profile-modal .modal-dialog {
    max-width: 800px;
}

.member-profile-modal .modal-content {
    border-radius: 12px;
    border: none;
}

.member-profile-modal .modal-header {
    border-bottom: none;
    padding: 20px 30px;
}

.member-profile-modal .modal-body {
    padding: 0 30px 30px;
}

.member-info-header {
    margin-bottom: 30px;
}

.member-name {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.member-designation {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 5px;
}

.member-phone {
    font-size: 14px;
    color: #495057;
}

.member-meta-info {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.meta-info-item {
    font-size: 14px;
}

.meta-info-label {
    color: #6c757d;
    margin-right: 8px;
}

.meta-info-value {
    color: #212529;
    font-weight: 500;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #212529;
}

.recent-projects {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.project-card {
    min-width: 150px;
    text-align: center;
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
}

.project-type {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 4px;
}

.project-name {
    font-size: 14px;
    font-weight: 500;
    color: #212529;
}

.personal-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    font-size: 14px;
}

.info-label {
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 4px;
}

.info-value {
    color: #212529;
}

.document-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.document-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    position: relative;
}

.document-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #212529;
}

.document-preview {
    width: 100%;
    height: 200px;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.document-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #6c757d;
    font-size: 48px;
}

.pan-card {
    background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
    border-radius: 8px;
    padding: 20px;
    position: relative;
    height: 220px;
}

.pan-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.govt-text {
    font-size: 12px;
    color: #004d40;
}

.income-tax-dept {
    font-size: 10px;
    color: #00695c;
    text-align: right;
}

.pan-content {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.pan-photo {
    width: 80px;
    height: 100px;
    background-color: #e0e0e0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pan-details {
    flex: 1;
}

.pan-number {
    font-size: 18px;
    font-weight: 600;
    color: #004d40;
    margin-bottom: 8px;
}

.pan-name {
    font-size: 14px;
    color: #004d40;
    margin-bottom: 4px;
}

.pan-father {
    font-size: 12px;
    color: #00695c;
    margin-bottom: 4px;
}

.pan-dob {
    font-size: 12px;
    color: #00695c;
}

.qr-code {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aadhar-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    position: relative;
    height: 200px;
}

.aadhar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.aadhar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.aadhar-logo img {
    height: 30px;
}

.aadhar-text {
    font-size: 16px;
    font-weight: 600;
    color: #ff5722;
}

.aadhar-content {
    display: flex;
    gap: 20px;
}

.aadhar-photo {
    width: 80px;
    height: 100px;
    background-color: #f5f5f5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aadhar-details {
    flex: 1;
}

.aadhar-number {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .member-meta-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .recent-projects {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .recent-projects::-webkit-scrollbar {
        display: none;
    }
    
    .personal-info-grid {
        grid-template-columns: 1fr;
    }
    
    .document-section {
        grid-template-columns: 1fr;
    }
    
    .member-profile-modal .modal-dialog {
        margin: 10px;
    }
}