/* Dashboard Styles - Redesigned to match rent page */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #cbd5e1;
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Dashboard */
.dashboard {
    padding: 1rem 2rem 2rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    background: #cbd5e1;
    min-height: calc(100vh - 80px);
}

/* Welcome Section */
.welcome-section {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(7,65,115,0.07);
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.welcome-content h2 {
    color: #074173;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.welcome-subtitle {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 0;
}

/* Summary Cards Section */
.summary-cards-section {
    margin-bottom: 2rem;
}

.summary-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.summary-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 12px rgba(7,65,115,0.07);
    transition: all 0.3s ease;
    border: 1px solid rgba(7,65,115,0.06);
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(7,65,115,0.1);
}

.summary-icon {
    width: 50px;
    height: 50px;
    background: rgba(56, 164, 200, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38a4c8;
    font-size: 1.5rem;
}

.summary-content h3 {
    color: #074173;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}

.summary-content p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: rgba(255,255,255,0.4);
}

.stat-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.stat-info {
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

/* Quick Actions Section */
.quick-actions-section {
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h3 {
    color: #074173;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header h3 i {
    color: #38a4c8;
}

.action-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.action-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 12px rgba(7,65,115,0.07);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(7,65,115,0.06);
    position: relative;
    overflow: hidden;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(7,65,115,0.1);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #38a4c8 0%, #074173 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.card-content {
    flex: 1;
}

.card-content h4 {
    color: #074173;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.card-content p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

.card-arrow {
    color: #38a4c8;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.action-card:hover .card-arrow {
    transform: translateX(5px);
    color: #074173;
}

.action-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 1.8rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.6s;
}

.action-card:hover::before {
    left: 100%;
}

.action-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: rgba(102, 126, 234, 0.3);
    background: rgba(255,255,255,1);
}

.card-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    border: 2px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.action-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.card-content {
    flex: 1;
}

.card-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #333;
}

.card-content p {
    color: #666;
    font-size: 0.9rem;
}

.card-arrow {
    color: #ccc;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.action-card:hover .card-arrow {
    color: #667eea;
    transform: translateX(5px);
}


.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: rgba(248,249,250,0.8);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05);
}

.activity-item:hover {
    background: rgba(233,236,239,0.9);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.activity-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    border: 2px solid rgba(255,255,255,0.2);
}

.activity-content {
    flex: 1;
}

.activity-content p {
    margin-bottom: 0.3rem;
    color: #333;
}

.activity-time {
    font-size: 0.8rem;
    color: #666;
}

/* Navigation styles are handled by nav.css */

/* Profile Dropdown */
.profile-dropdown {
    position: absolute;
    top: 70px;
    right: 1rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #f8f9fa;
}

.dropdown-item:first-child {
    border-radius: 15px 15px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 15px 15px;
}

.dropdown-item i {
    color: #667eea;
    width: 20px;
}

/* Notification Panel */
.notification-panel {
    position: fixed;
    top: 0;
    right: -500px;
    width: 350px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 1002;
    overflow-y: auto;
}

.notification-panel.show {
    right: 0;
}

.notification-header {
    padding: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.notification-header h4 {
    margin: 0;
    color: #333;
    font-weight: 600;
}

.close-notifications {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #666;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-notifications:hover {
    background: #e9ecef;
    color: #333;
}

.notification-list {
    padding: 1rem;
}

.no-notifications {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.no-notifications i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}


/* Responsive Design */
@media (max-width: 768px) {
    .dashboard {
        padding: 1rem;
    }

    .summary-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .action-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .dashboard-content {
        padding: 0.5rem;
    }

    .summary-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .summary-card {
        padding: 1rem;
    }

    .summary-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .summary-content h3 {
        font-size: 1.5rem;
    }

    .action-card {
        padding: 1rem;
    }

    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .welcome-section {
        padding: 1.5rem;
    }

    .welcome-content h2 {
        font-size: 1.5rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard {
        padding: 0.5rem;
        padding-bottom: 120px;
    }

    .welcome-content h2 {
        font-size: 1.5rem;
    }

    .quick-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .stat-card {
        padding: 0.8rem;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .action-card {
        padding: 1rem;
    }

    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .notification-panel {
        width: 100%;
    }

    .bottom-nav {
        padding: 0.3rem 0;
    }

    .nav-item {
        padding: 0.4rem 0.5rem;
        min-width: 50px;
    }

    .nav-item span {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 0.5rem;
    }

    .app-title {
        font-size: 1.2rem;
    }

    .app-logo {
        width: 44px;
        height: 44px;
        padding: 2px;
    }

    .quick-stats {
        grid-template-columns: 1fr;
    }

    .welcome-content h2 {
        font-size: 1.3rem;
    }

    .action-card {
        padding: 0.8rem;
    }

    .card-content h4 {
        font-size: 1rem;
    }

    .card-content p {
        font-size: 0.8rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .action-card,
    .recent-activity,
    .bottom-nav {
        background: #2d3748;
        color: #e2e8f0;
    }

    .card-content h4 {
        color: #e2e8f0;
    }

    .card-content p {
        color: #a0aec0;
    }

    .activity-item {
        background: #1a202c;
        color: #e2e8f0;
    }

    .activity-content p {
        color: #e2e8f0;
    }

    .activity-time {
        color: #a0aec0;
    }
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modern Animations */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.3); }
    50% { box-shadow: 0 0 30px rgba(102, 126, 234, 0.5); }
}

/* Utility classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background: rgba(102, 126, 234, 0.3);
    color: #333;
}

::-moz-selection {
    background: rgba(102, 126, 234, 0.3);
    color: #333;
}

/* Index page specific dashboard styles */
.dashboard {
    padding: 24px 8px 8px 8px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.welcome-section {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(7,65,115,0.07);
    padding: 20px 16px;
    margin-bottom: 18px;
}

.welcome-content h2 {
    color: #074173;
    font-size: 1.3rem;
    font-weight: 600;
}

.welcome-subtitle {
    color: #38a4c8;
    font-size: 1rem;
}

.quick-stats {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.stat-card {
    background: #cbd5e1;
    border-radius: 14px;
    flex: 1 1 45%;
    min-width: 120px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 10px;
    box-shadow: 0 1px 6px rgba(2,6,23,0.07);
}

.stat-icon {
    background: #38a4c8;
    color: #fff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat-number {
    color: #074173;
    font-size: 1.2rem;
    font-weight: 700;
}

.stat-label {
    color: #020617;
    font-size: 0.9rem;
}

.action-cards {
    margin-bottom: 18px;
}

.section-title h3 {
    color: #074173;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.action-card {
    background: linear-gradient(120deg, #fff 70%, #cbd5e1 100%);
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(7,65,115,0.07);
    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
}

.action-card:hover {
    box-shadow: 0 4px 18px rgba(56,164,200,0.18);
    transform: translateY(-2px) scale(1.03);
}

.card-icon {
    background: #38a4c8;
    color: #fff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.card-content h4 {
    color: #074173;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.card-content p {
    color: #020617;
    font-size: 0.95rem;
}

.card-arrow {
    align-self: flex-end;
    color: #38a4c8;
    font-size: 1.1rem;
    margin-top: 6px;
}

.recent-activity {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(7,65,115,0.07);
    padding: 18px 14px;
}

.activity-list {
    margin-top: 10px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #cbd5e1;
}

.activity-icon {
    background: #074173;
    color: #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.activity-content p {
    color: #074173;
    font-size: 0.98rem;
    margin-bottom: 2px;
}

.activity-time {
    color: #38a4c8;
    font-size: 0.85rem;
}

.view-all-btn {
    background: #38a4c8;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.95rem;
    cursor: pointer;
    margin-left: 10px;
    transition: background 0.2s;
}

.view-all-btn:hover {
    background: #074173;
}

/* Stats card grid styles */
.stats-card-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
    margin-top: 18px;
}

.stats-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(7,65,115,0.07);
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 90px;
}

.main-card {
    grid-row: 1 / span 2;
    grid-column: 1 / span 1;
    background: linear-gradient(135deg, #074173 70%, #38a4c8 100%);
    color: #fff;
    position: relative;
}

.main-card .stats-card-label,
.main-card .stats-card-number,
.main-card .stats-card-sub {
    color: #fff;
}

.stats-card-icon {
    background: #cbd5e1;
    color: #074173;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.main-card .stats-card-icon {
    background: #fff;
    color: #074173;
}

.stats-card-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: #074173;
}

.stats-card-label {
    font-size: 1rem;
    color: #074173;
    font-weight: 600;
}

.stats-card-sub {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin-top: 4px;
}

.add-property-btn {
    width: 100%;
    background: #38a4c8;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 0;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 18px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(56,164,200,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

.add-property-btn:hover {
    background: #074173;
}

/* Responsive styles for index page */
@media (max-width: 900px) {
    .dashboard {
        max-width: 100vw;
        width: 100vw;
        padding: 16px 2vw 8px 2vw;
    }
}

@media (max-width: 600px) {
    .dashboard {
        max-width: 100vw;
        width: 100vw;
        padding: 8px 1vw 4px 1vw;
    }
    .quick-stats {
        flex-direction: column;
        gap: 10px;
    }
    .stat-card {
        min-width: 0;
        width: 100%;
        flex: 1 1 100%;
    }
}

@media (max-width: 600px) {
    .dashboard {
        padding: 12px 2px 2px 2px;
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    html, body {
        width: 100vw;
        min-width: 100vw;
        max-width: 100vw;
        overflow-x: hidden;
    }
    .dashboard {
        padding: 8px 2px 2px 2px;
        width: 100vw;
        max-width: 100vw;
        margin: 0;
    }
    .stats-card-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 12px;
    }
    .main-card {
        grid-row: 1 / span 2;
        grid-column: 1 / span 1;
        min-height: 160px;
        padding: 18px 12px;
    }
    .stats-card {
        min-height: 75px;
        padding: 14px 8px;
    }
    .stats-card-icon {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }
    .stats-card-number {
        font-size: 1.05rem;
    }
    .add-property-btn {
        font-size: 1rem;
        padding: 12px 0;
    }
}