/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f0f2f5 0%, #e0e4eb 100%); /* Lighter, more modern background */
    color: #2c3e50; /* Darker text for better contrast */
    line-height: 1.6;
    overflow-x: hidden;
}

/* CSS Variables */
:root {
    --primary-color: #3498db; /* A fresh blue */
    --accent-color: #e74c3c; /* A vibrant red */
    --secondary-color: #2ecc71; /* A lively green */
    --background-color: #ffffff;
    --text-color: #2c3e50;
    --text-muted: #7f8c8d;
    --border-color: #dcdcdc;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.18);
    --radius: 0.75rem; /* Slightly smaller radius for a cleaner look */
    --transition: all 0.3s ease;
}

/* Typography */
.heading-xl {
    font-size: 2.8rem; /* Slightly larger */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem; /* More space below headings */
    color: var(--text-color);
}

.heading-lg {
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.6rem;
    color: var(--text-color);
}

.heading-md {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.body-lg {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-color);
}

.body-md {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(52, 152, 219, 0.4);
    }
    50% {
        box-shadow: 0 0 25px rgba(52, 152, 219, 0.7);
    }
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.slide-up {
    animation: slideUp 0.6s ease-out forwards;
}

.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

.scale-in {
    animation: scaleIn 0.4s ease-out forwards;
}

.pulse-glow {
    animation: pulseGlow 2.5s infinite;
}

/* Screen Management */
.screen {
    display: none;
    min-height: 100vh;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.screen.active {
    display: block;
    position: relative;
}

/* Login Screen */
.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    max-width: 450px; /* Slightly wider form */
    margin: 0 auto;
    background: var(--background-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem; /* More space */
}

.logo-container {
    width: 90px; /* Slightly larger logo */
    height: 90px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.8rem;
    box-shadow: var(--shadow-md);
}

.logo-container i {
    font-size: 2.5rem; /* Larger icon */
    color: white;
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.75rem; /* Increased gap */
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-container i {
    position: absolute;
    left: 1.2rem; /* Adjusted icon position */
    color: var(--text-muted);
    z-index: 1;
    font-size: 1.1rem; /* Slightly larger icon */
}

.input-container input {
    width: 100%;
    padding: 1.1rem 1.2rem 1.1rem 3.5rem; /* Increased padding for better spacing */
    border: 1px solid var(--border-color); /* Thinner border */
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
    background: #fdfdfd; /* Slightly off-white background */
}

.input-container input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.15); /* Stronger focus glow */
}

.error-message {
    background: #ffebee;
    color: #c0392b;
    padding: 0.85rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    text-align: center;
    border: 1px solid #e74c3c;
}

.demo-text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem; /* Increased gap */
    padding: 1.1rem 1.8rem; /* More padding */
    border: none;
    border-radius: var(--radius);
    font-size: 1.05rem; /* Slightly larger font */
    font-weight: 600; /* Bolder text */
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.25);
}

.btn-primary:hover {
    background: #2980b9; /* Darker blue on hover */
    transform: translateY(-3px); /* More pronounced lift */
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.35);
}

.btn-primary:active {
    transform: scale(0.97); /* Subtle press effect */
}

.btn-secondary {
    background: #ecf0f1;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: #dce0e1;
    border-color: var(--primary-color);
}

.bubbly-button {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.bubbly-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15); /* Lighter ripple */
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease-out, height 0.4s ease-out, opacity 0.4s ease-out;
}

.bubbly-button:active::before {
    width: 200%;
    height: 200%;
    opacity: 1;
    transition: 0s;
}

/* Role Selection */
.role-selection-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    max-width: 1300px; /* Wider container */
    margin: 0 auto;
}

.role-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted min width */
    gap: 2.5rem; /* Increased gap */
    width: 100%;
    max-width: 1000px;
    margin-bottom: 2.5rem;
}

.role-card {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2.2rem; /* More padding */
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.role-card:hover {
    transform: translateY(-6px); /* More pronounced lift */
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color); /* Highlight border on hover */
}

.role-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.role-icon i {
    font-size: 2.8rem;
    color: white;
}

.owner-role .role-icon {
    background: var(--primary-color);
}

.partner-role .role-icon {
    background: var(--accent-color);
}

.employee-role .role-icon {
    background: var(--secondary-color);
}

.role-content h3 {
    margin-bottom: 0.6rem;
    font-size: 1.6rem;
}

.role-footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

/* Dashboard Layout */
.dashboard {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.dashboard-header {
    background: var(--background-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.8rem 0; /* Reduced vertical padding */
}

.header-content {
    max-width: 1500px; /* Wider header */
    margin: 0 auto;
    padding: 0.5rem 2.5rem; /* Adjusted padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.logo-small {
    width: 45px;
    height: 45px;
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo-small i {
    color: white;
    font-size: 1.4rem;
}

.owner-logo {
    background: var(--primary-color);
}

.partner-logo {
    background: var(--accent-color);
}

.employee-logo {
    background: var(--secondary-color);
}

.header-text h1 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-color);
}

.header-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.2rem;
    background: none;
    border: 1px solid var(--border-color); /* Added border */
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 0.6rem;
    transition: var(--transition);
    font-weight: 500;
}

.logout-btn:hover {
    background: #f0f2f5;
    color: var(--primary-color); /* Highlight color on hover */
    border-color: var(--primary-color);
}

.dashboard-container {
    display: flex;
    flex: 1;
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
    padding: 1.5rem 0; /* Added vertical padding */
}

.sidebar {
    width: 280px; /* Wider sidebar */
    background: var(--background-color);
    border-right: 1px solid var(--border-color);
    padding: 2rem 1.5rem; /* More padding */
    min-height: calc(100vh - 120px); /* Adjusted height */
    border-radius: var(--radius); /* Rounded corners */
    box-shadow: var(--shadow-sm);
    margin-right: 1.5rem; /* Space from main content */
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1.2rem;
    border: none;
    background: none;
    border-radius: 0.6rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    width: 100%;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
}

.nav-item:hover {
    background: #eef2f5;
    color: var(--primary-color);
}

.nav-item.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.nav-item.active i {
    color: white;
}

.nav-item i {
    width: 20px; /* Larger icons */
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.main-content {
    flex: 1;
    padding: 2rem; /* More padding */
    background: var(--background-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
}

.content-header h1 {
    margin: 0;
    color: var(--text-color);
}

.content-header p {
    margin: 0;
    color: var(--text-muted);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem; /* Increased gap */
    margin-bottom: 2.5rem;
}

.stat-card {
    background: linear-gradient(45deg, #ffffff, #f8f9fa); /* Subtle gradient */
    border-radius: var(--radius);
    padding: 1.8rem; /* More padding */
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.stat-value {
    font-size: 2.4rem; /* Larger value */
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.3rem;
}

.stat-description {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.stat-icon {
    width: 55px; /* Larger icon container */
    height: 55px;
    border-radius: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.stat-icon i {
    font-size: 1.8rem;
    color: white;
}

.cities-icon {
    background: var(--primary-color);
}

.properties-icon {
    background: var(--accent-color);
}

.reports-icon {
    background: var(--secondary-color);
}

/* Quick Actions */
.quick-actions {
    background: var(--background-color);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.quick-actions h2 {
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.action-card {
    padding: 1.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: #fdfdfd;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    box-shadow: var(--shadow-sm);
}

.action-card:hover {
    border-color: var(--primary-color);
    background: rgba(52, 152, 219, 0.05);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.action-card i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.action-card h3 {
    margin-bottom: 0.6rem;
    font-size: 1.15rem;
}

.action-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* Lists */
.cities-list, .properties-list, .notifications-list, .reports-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.city-card, .property-card, .notification-card, .report-card {
    background: var(--background-color);
    border-radius: var(--radius);
    padding: 1.8rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.city-card:hover, .property-card:hover, .notification-card:hover, .report-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.2rem;
}

.card-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.card-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.card-actions {
    display: flex;
    gap: 0.6rem;
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 0.6rem;
}

.property-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    background: #f8f9fa;
    border-radius: 0.6rem;
    border: 1px solid #e0e4eb;
    margin-bottom: 0.8rem;
}

.property-item:last-child {
    margin-bottom: 0;
}

.property-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.property-info .text-muted {
    font-size: 0.85rem;
}

/* Property Details */
.property-detail-content {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.property-detail-section {
    background: #f8f9fa;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #e0e4eb;
}

.property-detail-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--text-color);
    border-bottom: 1px solid #e0e4eb;
    padding-bottom: 0.5rem;
}

.property-detail-section p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: var(--text-muted);
}

.property-detail-section p strong {
    color: var(--text-color);
}

.access-codes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.access-code {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 0.6rem;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    color: var(--text-color);
}

.access-code:hover {
    background: #eef2f5;
    border-color: var(--primary-color);
}

.stock-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1rem;
}

.stock-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1rem;
    background: var(--background-color);
    border-radius: 0.6rem;
    border: 1px solid var(--border-color);
}

.stock-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--secondary-color);
    cursor: pointer;
}

.stock-item label {
    margin: 0;
    font-size: 1rem;
    color: var(--text-color);
}

.mark-cleaned-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 1.1rem 1.8rem;
    border-radius: var(--radius);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.25);
}

.mark-cleaned-btn:hover {
    background: #27ae60;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.35);
}

.mark-cleaned-btn:active {
    transform: scale(0.97);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Darker overlay */
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px); /* Subtle blur effect */
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--background-color);
    border-radius: var(--radius); /* Consistent radius */
    max-width: 550px; /* Slightly wider modal */
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: scaleIn 0.3s ease-out forwards;
    border: 1px solid var(--border-color);
}

.modal-content.large {
    max-width: 900px; /* Larger modal for property details */
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem; /* More padding */
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem; /* Larger modal title */
    color: var(--text-color);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.8rem; /* Larger close icon */
    cursor: pointer;
    color: var(--text-muted);
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.close-btn:hover {
    background: #f0f2f5;
    color: var(--accent-color); /* Red on hover for close */
}

.modal form {
    padding: 2rem; /* More padding */
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding: 0 2rem 2rem; /* Padding for actions */
}

/* Form Elements */
label {
    font-weight: 600; /* Bolder label */
    margin-bottom: 0.6rem;
    display: block;
    color: var(--text-color);
}

input[type="text"], input[type="email"], input[type="password"], input[type="date"], textarea {
    width: 100%;
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.6rem;
    font-size: 1rem;
    transition: var(--transition);
    background: #fdfdfd;
    color: var(--text-color);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.15);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

#locationDisplay {
    background: #eef2f5;
    border: 1px solid #dcdcdc;
    border-radius: 0.6rem;
    padding: 0.8rem 1rem;
    margin-top: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-color);
}

/* Coming Soon */
.coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
    text-align: center;
    background: var(--background-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.coming-soon i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.coming-soon p {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Empty States */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    background: var(--background-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.empty-state p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.toast {
    background: var(--background-color);
    border-radius: var(--radius);
    padding: 1.1rem 1.6rem;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    border: 1px solid var(--border-color);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    border-left: 6px solid var(--secondary-color);
}

.toast-success i {
    color: var(--secondary-color);
}

.toast-error {
    border-left: 6px solid var(--accent-color);
}

.toast-error i {
    color: var(--accent-color);
}

.toast-info {
    border-left: 6px solid var(--primary-color);
}

.toast-info i {
    color: var(--primary-color);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.toast-content i {
    font-size: 1.35rem;
}

.toast-content span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
}

/* Confetti */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1200;
}

.confetti {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: confettiFall 3.5s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 992px) {
    .dashboard-container {
        flex-direction: column;
        padding: 1rem 0;
    }

    .sidebar {
        width: 100%;
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 1.5rem;
        margin-right: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-item {
        flex: 1 1 auto;
        justify-content: center;
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
    }

    .main-content {
        padding: 1.5rem;
        border-radius: 0;
        box-shadow: none;
    }

    .header-content {
        flex-direction: column;
        gap: 0.8rem;
        padding: 0.8rem 1.5rem;
    }

    .logout-btn {
        margin-top: 0.8rem;
    }

    .login-container, .role-selection-container {
        padding: 1.5rem;
    }

    .roles-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

    .stat-card, .action-card, .city-card, .property-card, .notification-card, .report-card {
        padding: 1.5rem;
    }

    .modal-content {
        width: 90%;
    }

    .toast-container {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }
}

@media (max-width: 576px) {
    .heading-xl {
        font-size: 2.2rem;
    }

    .heading-lg {
        font-size: 1.8rem;
    }

    .heading-md {
        font-size: 1.4rem;
    }

    .login-container {
        padding: 1rem;
        box-shadow: none;
        border-radius: 0;
    }

    .logo-container {
        width: 70px;
        height: 70px;
        margin-bottom: 1.2rem;
    }

    .logo-container i {
        font-size: 2rem;
    }

    .input-container input {
        padding: 1rem 1rem 1rem 3rem;
    }

    .input-container i {
        left: 0.8rem;
        font-size: 1rem;
    }

    .btn-primary, .btn-secondary {
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
    }

    .role-selection-container {
        padding: 1rem;
    }

    .role-card {
        padding: 1.5rem;
    }

    .role-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }

    .role-icon i {
        font-size: 2.2rem;
    }

    .role-content h3 {
        font-size: 1.4rem;
    }

    .dashboard-header {
        padding: 0.5rem 0;
    }

    .header-content {
        padding: 0.5rem 1rem;
    }

    .header-text h1 {
        font-size: 1.1rem;
    }

    .header-text p {
        font-size: 0.8rem;
    }

    .logout-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }

    .main-content {
        padding: 1rem;
    }

    .content-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 1.5rem;
    }

    .content-header h1 {
        font-size: 1.8rem;
    }

    .content-header p {
        font-size: 1rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
    }

    .stat-icon i {
        font-size: 1.5rem;
    }

    .quick-actions h2 {
        font-size: 1.4rem;
    }

    .action-card h3 {
        font-size: 1rem;
    }

    .action-card p {
        font-size: 0.8rem;
    }

    .modal-header h2 {
        font-size: 1.3rem;
    }

    .modal form {
        padding: 1.5rem;
    }

    .modal-actions {
        padding: 0 1.5rem 1.5rem;
    }

    .empty-state, .coming-soon {
        padding: 3rem 1rem;
    }

    .empty-state i, .coming-soon i {
        font-size: 3rem;
    }

    .empty-state h3, .coming-soon p {
        font-size: 1.2rem;
    }

    .toast {
        padding: 0.8rem 1.2rem;
    }

    .toast-content i {
        font-size: 1.1rem;
    }

    .toast-content span {
        font-size: 0.85rem;
    }
}


