/* Global Variables */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f5;
}

/* Sidebar Styles */
.sidebar {
    min-height: 100vh;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar .nav-link {
    padding: 0.8rem 1rem;
    margin: 0.2rem 0;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
    background-color: var(--primary-color);
}

/* Main Content Styles */
main {
    padding-top: 60px;
    margin-top: 60px;
}

/* Card Styles */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.2s ease;
}

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

.card .card-title {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border-top: none;
}

.table td {
    vertical-align: middle;
}

/* Status Badges */
.status-badge {
    padding: 0.35rem 0.65rem;
    border-radius: 50rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-paid {
    background-color: var(--success-color);
    color: white;
}

.status-pending {
    background-color: var(--warning-color);
    color: var(--dark-color);
}

.status-available {
    background-color: var(--success-color);
    color: white;
}

.status-occupied {
    background-color: var(--danger-color);
    color: white;
}

/* Admin Dashboard Specific Styles */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.logo {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links {
    list-style: none;
    margin-top: 30px;
}

.nav-links li {
    margin-bottom: 10px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-links a i {
    margin-right: 10px;
    width: 20px;
}

.nav-links a:hover,
.nav-links li.active a {
    background-color: var(--primary-color);
}

.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 20px;
    margin-top: 50px;
}

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

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-card i {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-card h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--dark-color);
}

.recent-activities {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.activity-list {
    margin-top: 20px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 100;
        padding: 0;
        box-shadow: none;
    }
    
    .sidebar-sticky {
        position: relative;
        top: 0;
        height: calc(100vh - 48px);
        padding-top: 0.5rem;
        overflow-x: hidden;
        overflow-y: auto;
    }
    
    main {
        margin-left: 0 !important;
    }

    .main-content {
        margin-left: 0;
        padding: 15px;
    }

    .admin-container {
        flex-direction: column;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--light-gray);
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.login-box {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-box h2 {
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
}

.form-control {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #357abd;
    transform: translateY(-2px);
}

.error-message {
    background-color: var(--danger-color);
    color: white;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Common Components */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.status-active {
    background-color: var(--success-color);
    color: white;
}

.status-inactive {
    background-color: var(--danger-color);
    color: white;
}

/* Table Styles */
.table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
}

.table thead th {
    background-color: var(--light-gray);
    border-bottom: none;
    padding: 1rem;
    font-weight: 600;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
}

/* Form Styles */
.form-label {
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-box {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .table-responsive {
        border-radius: 15px;
    }
}

@font-face {
    font-family: 'SotunnyOMJ';
    src: url('../fonts/SotunnyOMJ.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.bangla {
    font-family: 'SotunnyOMJ', Arial, sans-serif;
}

/* --- Modern Landing Page Styles for index.php --- */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
    padding: 4rem 0 2rem 0;
    display: flex;
    align-items: center;
}
.hero-section .display-4 {
    color: #2c3e50;
    font-weight: 700;
    letter-spacing: 1px;
}
.hero-section .lead {
    color: #555;
    font-size: 1.25rem;
    margin-bottom: 2rem;
}
.hero-section .btn-primary {
    font-size: 1.15rem;
    padding: 0.75rem 2.5rem;
    border-radius: 30px;
    box-shadow: 0 4px 16px rgba(74,144,226,0.10);
}
.hero-section img {
    max-width: 100%;
    height: 400px;
    width: auto;
    margin-left: 20px;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(44,62,80,0.10);
}

.navbar {
    background-color: #fff !important;
    box-shadow: 0 2px 8px rgba(44,62,80,0.07);
    padding: 0.7rem 0;
}
.navbar .navbar-brand img {
    height: 40px;
    width: auto;
}
.navbar .btn-primary {
    border-radius: 20px;
    padding: 0.4rem 1.5rem;
    font-weight: 500;
}

.feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 4px 16px rgba(44,62,80,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
}
.feature-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 32px rgba(44,62,80,0.13);
}
.feature-icon {
    font-size: 2.7rem;
    margin-bottom: 1.2rem;
    color: #0d6efd;
}

#features h2 {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2.5rem;
}

#about {
    background: #f8fafc;
    border-radius: 18px;
    margin-top: 2rem;
    padding: 2.5rem 0;
}
#about h2 {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}
#about .lead {
    color: #555;
    font-size: 1.15rem;
}
#about img {
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(44,62,80,0.10);
}

footer {
    background: linear-gradient(to right, #1a1a1a, #2d2d2d);
}

footer h5 {
    color: #fff;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

footer h5:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #007bff;
}

footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    background: #007bff;
    transform: translateY(-3px);
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    color: #007bff !important;
}

@media (max-width: 991px) {
    .hero-section img {
        height: 250px;
        margin-left: 0;
        margin-top: 2rem;
    }
}
@media (max-width: 767px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
    }
    .hero-section .row {
        flex-direction: column-reverse;
    }
    .hero-section img {
        margin: 1.5rem auto 0 auto;
        display: block;
    }
    .feature-card {
        padding: 1.5rem 0.7rem;
    }
    #about {
        padding: 1.2rem 0;
    }
}

/* --- Login Page Styles from login.php --- */
.login-form-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
    padding: 2.2rem 1.5rem 1.5rem 1.5rem;
    max-width: 350px;
    margin: 80px auto;
}
.login-logo-img {
    display: block;
    margin: 0 auto 10px auto;
    max-width: 90px;
}
.login-title-bn {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
}
.toggle-btn-row {
    display: flex;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}
.toggle-btn-bn {
    flex: 1;
    padding: 0.6rem 0;
    font-size: 1.08rem;
    border: none;
    background: #f5f5f5;
    color: #222;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-family: 'SotunnyOMJ', Arial, sans-serif;
}
.toggle-btn-bn.active {
    background: #fff;
    color: #198754;
    font-weight: bold;
    border-bottom: 2px solid #198754;
}
.input-group .input-group-text {
    background: #f5f5f5;
    border-right: 0;
    font-size: 1.08rem;
    color: #222;
    border-radius: 8px 0 0 8px;
}
.input-group .form-control {
    border-radius: 0 8px 8px 0;
    border-left: 0;
}
.form-label.bangla {
    margin-bottom: 0.2rem;
}
.btn-login-bn {
    background: #198754;
    color: #fff;
    font-size: 1.13rem;
    border-radius: 8px;
    padding: 0.7rem 0;
    margin-top: 0.5rem;
}
.btn-login-bn:hover {
    background: #157347;
}
.forgot-link-bn {
    text-align: center;
    margin-top: 1.1rem;
    font-size: 1.01rem;
    color: #198754;
    cursor: pointer;
}
.error-message.bangla {
    background: #e74c3c;
    color: #fff;
    border-radius: 8px;
    padding: 0.6rem 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.01rem;
}

/* Offcanvas Styles */
.offcanvas-body {
    padding: 0;
}

.offcanvas-body .list-group {
    border-radius: 0;
}

.offcanvas-body .list-group-item {
    border-left: 0;
    border-right: 0;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    border-color: rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.offcanvas-body .list-group-item:hover {
    background-color: rgba(13, 110, 253, 0.05);
    transform: translateX(5px);
}

.offcanvas-body .list-group-item.active {
    background: linear-gradient(45deg, #0d6efd, #0a58ca);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.offcanvas-body .list-group-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    pointer-events: none;
}

.offcanvas-body .list-group-item.active i {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.offcanvas-body .list-group-item i {
    width: 20px;
    text-align: center;
    margin-right: 10px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

/* Remove underlines from all links */
a {
    text-decoration: none !important;
}

a:hover {
    text-decoration: none !important;
}

/* Sidebar styles */
@media (min-width: 992px) {
    main {
        margin-left: 16.666667%; /* col-lg-2 width */
    }
    
    .sidebar {
        height: 100vh;
        overflow-y: auto;
    }
}

/* Profile Section Styles (moved from tenant_profile.php) */
.profile-header {
    background: linear-gradient(285deg, #1c1c1c 0%, #7c7c7d 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-radius: 0.5rem;
}
.profile-picture {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 5px solid white;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}
.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.25rem;
}
.card-body {
    padding: 1.25rem;
}
.card-body-table {
    padding: 0 0 0 0;
}
.info-label {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}
.info-value {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2c3e50;
}
.status-active {
    background-color: var(--success-color);
    color: white;
}
.status-inactive {
    background-color: var(--danger-color);
    color: white;
}
.edit-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
}