/* Dashboard Styles */
.dashboard-container {
    display: flex;
    min-height: calc(100vh - 80px);
    animation: fadeIn 0.5s ease-out;
}

.sidebar {
    width: 280px;
    background: linear-gradient(135deg, #0f172a 0%, #1e40af 100%);
    color: white;
    padding: 2rem 1.5rem;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.menu-item {
    padding: 1.1rem 1.2rem;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    cursor: pointer;
    border-left: 4px solid transparent;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-left-color: #f59e0b;
    transform: translateX(5px);
}

.menu-item.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
    border-left-color: #f59e0b;
    font-weight: 700;
}

.menu-item.logout {
    margin-top: auto;
    background-color: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border-left-color: #ef4444;
}

.menu-item.logout:hover {
    background-color: rgba(239, 68, 68, 0.35);
    border-left-color: #ef4444;
}

.sidebar hr {
    border: none;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 1.2rem 0;
}

.dashboard-main {
    flex: 1;
    padding: 2rem;
    background-color: #f9fafb;
    overflow-y: auto;
}

.dashboard-section {
    display: none;
    animation: slideInUp 0.4s ease-out;
}

.dashboard-section.active {
    display: block;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.dashboard-main h2 {
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

/* Stats Dashboard */
.stats-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-box {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
    text-align: center;
    border-left: 5px solid #2563eb;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    border-top: 2px solid transparent;
    animation: zoomIn 0.6s ease-out;
}

.stat-box:nth-child(1) { animation-delay: 0.1s; }
.stat-box:nth-child(2) { animation-delay: 0.2s; }
.stat-box:nth-child(3) { animation-delay: 0.3s; }
.stat-box:nth-child(4) { animation-delay: 0.4s; }

.stat-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.25);
    border-top-color: #f59e0b;
}

.stat-value {
    font-size: 2.8rem;
    font-weight: 800;
    color: #2563eb;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.stat-label {
    color: #6b7280;
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.dashboard-card {
    background: white;
    padding: 2.2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.05);
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease-out;
}

.dashboard-card:nth-child(1) { animation-delay: 0.2s; }
.dashboard-card:nth-child(2) { animation-delay: 0.4s; }

.dashboard-card:hover {
    box-shadow: 0 15px 45px rgba(37, 99, 235, 0.2);
}

.dashboard-card h3 {
    color: #0f172a;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    border-bottom: 3px solid #f59e0b;
    padding-bottom: 0.8rem;
}

.property-list,
.viewing-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.property-item,
.viewing-item {
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 5px;
    border-left: 4px solid var(--primary-color);
}

.property-item h4,
.viewing-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.property-item p,
.viewing-item p {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Favorites Grid */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.favorites-grid .property-card {
    animation: zoomIn 0.6s ease-out;
}

.favorites-grid .property-card:nth-child(1) { animation-delay: 0.1s; }
.favorites-grid .property-card:nth-child(2) { animation-delay: 0.2s; }
.favorites-grid .property-card:nth-child(3) { animation-delay: 0.3s; }
.favorites-grid .property-card:nth-child(4) { animation-delay: 0.4s; }
.favorites-grid .property-card:nth-child(5) { animation-delay: 0.5s; }
.favorites-grid .property-card:nth-child(6) { animation-delay: 0.6s; }

/* Applications Table */
.applications-table {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

table thead {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
}

table th,
table td {
    padding: 1.2rem;
    text-align: left;
    font-weight: 500;
}

table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

table tbody tr:hover {
    background-color: #f9fafb;
    transform: scale(1.01);
}

.status-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.status-pending {
    background: linear-gradient(135deg, #fef08a, #fecf5c);
    color: #713f12;
    box-shadow: 0 4px 12px rgba(254, 207, 92, 0.3);
}

.status-approved {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
    box-shadow: 0 4px 12px rgba(187, 247, 208, 0.3);
}

.status-rejected {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    box-shadow: 0 4px 12px rgba(254, 202, 202, 0.3);
}

/* Viewings Grid */
.viewings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.viewing-card {
    background: white;
    padding: 1.8rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.12);
    border-top: 5px solid #2563eb;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    animation: slideInUp 0.6s ease-out;
}

.viewing-card:nth-child(1) { animation-delay: 0.1s; }
.viewing-card:nth-child(2) { animation-delay: 0.2s; }
.viewing-card:nth-child(3) { animation-delay: 0.3s; }
.viewing-card:nth-child(4) { animation-delay: 0.4s; }

.viewing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.2);
    border-top-color: #f59e0b;
}

.viewing-card h4 {
    color: #0f172a;
    margin-bottom: 0.8rem;
    font-weight: 700;
    font-size: 1.15rem;
}

.viewing-details {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.viewing-time {
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.viewing-actions {
    display: flex;
    gap: 0.5rem;
}

.viewing-actions button {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 5px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
}

/* Profile Form */
.profile-form {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.05);
    max-width: 700px;
}

.profile-form .form-group {
    margin-bottom: 1.8rem;
}

.profile-form label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.5px;
}

.profile-form input,
.profile-form select {
    width: 100%;
    padding: 0.95rem 1.2rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.profile-form input:hover,
.profile-form select:hover {
    border-color: #2563eb;
}

.profile-form input:focus,
.profile-form select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

/* Documents List */
.documents-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.document-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;    animation: zoomIn 0.6s ease-out;
    transition: all 0.3s ease;
}

.document-item:nth-child(1) { animation-delay: 0.1s; }
.document-item:nth-child(2) { animation-delay: 0.2s; }
.document-item:nth-child(3) { animation-delay: 0.3s; }

.document-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.2);}

.doc-info h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.doc-info p {
    color: #6b7280;
    font-size: 0.9rem;
}

.document-item button {
    align-self: flex-start;
    margin-top: 1rem;
}

/* Messages Container */
.messages-container {
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.messages-list {
    border-right: 1px solid var(--border-color);
    max-height: 500px;
    overflow-y: auto;
}

.message-item {
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #f9fafb;
    border-radius: 5px;
    border-left: 4px solid var(--accent-color);
}

.message-item h4 {
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
}

.message-item p {
    color: #6b7280;
    font-size: 0.9rem;
}

.message-item .date {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 0.5rem;
}

.message-compose {
    display: flex;
    flex-direction: column;
}

.message-compose h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.message-compose textarea {
    margin-bottom: 1rem;
    resize: vertical;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

/* User Greeting */
.user-greeting {
    color: white;
    font-weight: 500;
}
