/* filename: assets/css/style.css */

/* ===== Font Face ===== */
@font-face {
    font-family: 'Iran';
    src: url('../fonts/iran.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Iran', Tahoma, Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    direction: rtl;
    min-height: 100vh;
    padding-bottom: 70px; /* Space for bottom nav on mobile */
}

a {
    color: inherit;
    text-decoration: none;
}

input, button, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ===== Utility Classes ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.btn-primary {
    background-color: #2ecc71;
    color: #fff;
}
.btn-primary:hover {
    background-color: #27ae60;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ===== Login Page ===== */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background-color: #e8f5e9;
    padding-bottom: 20px; /* Override body padding for login */
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    margin-bottom: 15px;
}

.logo-container h1 {
    font-size: 1.5rem;
    color: #2ecc71;
    font-weight: bold;
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.login-form input {
    width: 100%;
    padding: 14px 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    transition: border-color 0.2s;
}

.login-form input:focus {
    outline: none;
    border-color: #2ecc71;
}

/* ===== Bottom Navigation (Mobile-First) ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 99;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 0.7rem;
    padding: 5px;
    border-radius: 8px;
    transition: color 0.2s;
}

.nav-icon {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.nav-item.active {
    color: #2ecc71;
    font-weight: bold;
}

.nav-item:hover {
    color: #2ecc71;
}

/* پیام سایر مددکاران در چت گروهی */
.msg-wrapper.other-admin .msg-bubble {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
}
.msg-wrapper.other-admin .msg-sender {
    color: #1565c0;
}
        
/* ===== Desktop Media Query ===== */
@media screen and (min-width: 768px) {
    body {
        padding-bottom: 0;
        padding-right: 80px; /* Space for sidebar */
    }

    .bottom-nav {
        top: 0;
        bottom: 0;
        left: auto;
        right: 0;
        width: 80px;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 30px;
        box-shadow: -2px 0 10px rgba(0,0,0,0.05);
    }

    .nav-item {
        margin-bottom: 20px;
        font-size: 0.65rem;
    }

    .nav-icon {
        font-size: 1.8rem;
    }
}
/* ===== Profile Page Styles ===== */
.profile-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.success-message {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
}

.profile-pic-section {
    text-align: center;
    margin-bottom: 25px;
}

.profile-pic-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 3px solid #2ecc71;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-pic-placeholder {
    font-size: 3rem;
    color: #bbb;
}

.profile-pic-placeholder.large {
    font-size: 5rem;
}

.upload-pic-form {
    margin-bottom: 10px;
}

.btn-secondary {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.profile-form {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2ecc71;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Public Link Section */
.public-link-section {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    text-align: center;
}

.link-icon {
    font-size: 1.2rem;
}

.link-copy-box {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.link-copy-box input {
    flex: 1;
    padding: 10px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 0.8rem;
    direction: ltr;
    text-align: left;
}

.btn-copy {
    background-color: #3498db;
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 0.9rem;
}

.btn-copy:hover {
    background-color: #2980b9;
}

/* Portfolio Section */
.portfolio-section {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.portfolio-section h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.portfolio-form {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.portfolio-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.portfolio-desc {
    padding: 8px;
    font-size: 0.8rem;
    text-align: center;
}

.btn-delete {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.8rem;
}

.empty-text {
    text-align: center;
    color: #999;
    padding: 20px;
}

/* ===== Public Profile Page ===== */
.public-profile-page {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.public-profile {
    text-align: center;
}

.public-profile-header {
    margin-bottom: 30px;
}

.public-profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 4px solid #2ecc71;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.public-profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-name {
    font-size: 1.5rem;
    color: #333;
}

.public-about {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    text-align: right;
    line-height: 1.8;
}

.public-about h2 {
    text-align: center;
    margin-bottom: 15px;
    color: #2ecc71;
}

.public-portfolio {
    margin-top: 25px;
}

.public-portfolio h2 {
    margin-bottom: 20px;
}

.public-portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.public-portfolio-item {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    background: #fff;
}

.public-portfolio-item:hover {
    transform: scale(1.02);
}

.public-portfolio-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.portfolio-caption {
    padding: 10px;
    font-size: 0.85rem;
    color: #555;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

/* Not Found */
.not-found {
    text-align: center;
    padding: 50px 20px;
}

.not-found-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.not-found h2 {
    margin-bottom: 10px;
    color: #333;
}

.not-found p {
    color: #777;
}

/* ===== Desktop Profile ===== */
@media screen and (min-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .public-portfolio-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .profile-pic-container {
        width: 150px;
        height: 150px;
    }
    
    .public-profile-pic {
        width: 180px;
        height: 180px;
    }
}
/* ===== Dashboard Styles ===== */
.main-content {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.dashboard-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.welcome-card {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.welcome-card h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.welcome-card p {
    font-size: 0.95rem;
    opacity: 0.95;
}

.quick-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.quick-link-card {
    background: #fff;
    padding: 25px 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.quick-link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.quick-link-icon {
    font-size: 2rem;
}

.quick-link-text {
    font-weight: bold;
    color: #333;
}

.logout-section {
    text-align: center;
    margin-top: 10px;
}

.btn-logout {
    background-color: #e74c3c;
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    display: inline-block;
    transition: background-color 0.2s;
}

.btn-logout:hover {
    background-color: #c0392b;
}

/* Desktop */
@media screen and (min-width: 768px) {
    .quick-links {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
    
    .welcome-card h2 {
        font-size: 1.6rem;
    }
}
/* ===== Chat Styles ===== */
.chat-app {
    display: flex;
    height: calc(100vh - 70px);
    max-width: 1200px;
    margin: 0 auto;
}

/* Chat List Panel */
.chat-list-panel {
    width: 100%;
    background: #fff;
    border-left: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.chat-list-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-list-header h2 {
    font-size: 1.1rem;
    margin: 0;
}

.btn-new-chat {
    background-color: #2ecc71;
    color: #fff;
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
}

.chat-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
}

.chat-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.85rem;
    color: #888;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.chat-tab.active {
    color: #2ecc71;
    border-bottom-color: #2ecc71;
    font-weight: bold;
}

.chat-list {
    flex: 1;
    overflow-y: auto;
}

.chat-item {
    display: flex;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    transition: background-color 0.2s;
}

.chat-item:hover,
.chat-item.active {
    background-color: #f0fff4;
}

.chat-item-pic {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-left: 12px;
    flex-shrink: 0;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-item-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-avatar-placeholder {
    font-size: 1.5rem;
}

.chat-avatar-placeholder.small {
    font-size: 1.2rem;
}

.chat-item-info {
    flex: 1;
    min-width: 0;
}

.chat-item-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.chat-item-name {
    font-weight: bold;
    font-size: 0.9rem;
}

.chat-item-time {
    font-size: 0.7rem;
    color: #999;
}

.chat-item-last {
    font-size: 0.8rem;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Chat Messages Panel */
.chat-messages-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #e8f5e9;
}

.chat-header {
    padding: 15px;
    background: #fff;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-back {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-header-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-header-name {
    font-size: 1rem;
    margin: 0;
}

.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.empty-chat {
    text-align: center;
    color: #999;
    margin: auto;
}

.empty-chat p {
    margin: 5px 0;
}

/* Message Bubbles */
.message-row {
    margin-bottom: 15px;
    max-width: 80%;
}

.message-row-me {
    align-self: flex-end;
}

.message-row-other {
    align-self: flex-start;
}

.message-sender {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 4px;
    margin-right: 8px;
}

.message-bubble-me {
    background: #2ecc71;
    color: #fff;
    padding: 10px 15px;
    border-radius: 16px 4px 16px 16px;
    word-wrap: break-word;
    display: inline-block;
}

.message-bubble-other {
    background: #fff;
    color: #333;
    padding: 10px 15px;
    border-radius: 4px 16px 16px 16px;
    word-wrap: break-word;
    display: inline-block;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.message-time {
    font-size: 0.7rem;
    color: #999;
    margin-top: 4px;
    text-align: left;
}

/* Message Input */
.message-input-container {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.message-input-container input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 25px;
    outline: none;
    font-size: 0.9rem;
}

.message-input-container input:focus {
    border-color: #2ecc71;
}

.btn-send {
    background: #2ecc71;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.btn-send:hover {
    background: #27ae60;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 450px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.modal-body {
    padding: 20px;
}

.modal-body .form-group {
    margin-bottom: 15px;
}

.modal-body select,
.modal-body input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-family: inherit;
}

.search-results {
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    transition: background-color 0.2s;
}

.search-result-item:hover {
    background-color: #f9f9f9;
}

.search-result-item.selected {
    background-color: #f0fff4;
}

.search-result-pic {
    font-size: 1.5rem;
}

.search-result-name {
    font-weight: bold;
    font-size: 0.9rem;
}

.search-result-mobile {
    font-size: 0.8rem;
    color: #999;
}

.add-mark,
.check-mark {
    margin-right: auto;
    font-size: 1.2rem;
}

.selected-users {
    margin-bottom: 10px;
}

.selected-users-label {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 5px;
}

.selected-users-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.selected-user-tag {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.remove-user {
    cursor: pointer;
    font-weight: bold;
}

.loading-text,
.error-text {
    text-align: center;
    padding: 30px;
    color: #999;
}

.error-text {
    color: #c62828;
}

/* ===== Desktop Chat Layout ===== */
@media screen and (min-width: 768px) {
    .chat-app {
        height: calc(100vh - 80px);
        padding-right: 0;
    }
    
    .chat-list-panel {
        width: 350px;
        flex-shrink: 0;
    }
    
    .btn-back {
        display: none;
    }
    
    .chat-messages-panel {
        display: flex !important;
    }
}

/* ===== Mobile Chat Layout ===== */
@media screen and (max-width: 767px) {
    .chat-messages-panel {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 70px;
        z-index: 500;
    }
    
    .chat-messages-panel.show {
        display: flex;
    }
    
    .chat-list-panel {
        display: flex !important;
    }
}
/* ===== Final Styles - Dashboard, Toast, Animations ===== */

/* Dashboard */
.dashboard-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.welcome-card {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
    margin-bottom: 25px;
}

.welcome-content h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.welcome-role {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 5px;
}

.welcome-date {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat-icon {
    font-size: 2rem;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2ecc71;
}

.stat-label {
    font-size: 0.8rem;
    color: #888;
}

/* Section Title */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    margin-top: 10px;
}

.section-title h3 {
    font-size: 1.1rem;
    margin: 0;
}

.see-all {
    color: #2ecc71;
    font-size: 0.85rem;
    text-decoration: none;
}

.see-all:hover {
    text-decoration: underline;
}

/* Quick Links */
.quick-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.quick-link-card {
    background: #fff;
    padding: 20px 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

.quick-link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.quick-link-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
}

.quick-link-text {
    font-weight: bold;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 4px;
}

.quick-link-desc {
    font-size: 0.75rem;
    color: #888;
}

/* Recent Announcements */
.recent-announcements {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.recent-announcement-item {
    display: flex;
    gap: 12px;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.recent-announcement-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2ecc71;
    margin-top: 6px;
    flex-shrink: 0;
}

.recent-announcement-content h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.recent-announcement-content p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 4px;
}

.recent-announcement-date {
    font-size: 0.75rem;
    color: #999;
}

/* Logout */
.logout-section {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-logout {
    background-color: #e74c3c;
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s;
}

.btn-logout:hover {
    background-color: #c0392b;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.9rem;
    z-index: 3000;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    white-space: nowrap;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-success {
    background: #2ecc71;
}

.toast-error {
    background: #e74c3c;
}

/* Portfolio Actions */
.portfolio-actions {
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    display: flex;
    justify-content: space-between;
    z-index: 10;
}

.btn-feature {
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

.btn-feature:hover {
    transform: scale(1.2);
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.welcome-card {
    animation: slideDown 0.5s ease;
}

.quick-link-card {
    animation: fadeIn 0.5s ease;
}

.quick-link-card:nth-child(1) { animation-delay: 0.1s; }
.quick-link-card:nth-child(2) { animation-delay: 0.2s; }
.quick-link-card:nth-child(3) { animation-delay: 0.3s; }
.quick-link-card:nth-child(4) { animation-delay: 0.4s; }

.modal {
    animation: scaleIn 0.2s ease;
}

.modal-content {
    animation: slideUp 0.3s ease;
}

.announcement-card {
    animation: fadeIn 0.4s ease;
}

.wall-card {
    animation: fadeIn 0.5s ease;
}

.message-row {
    animation: fadeIn 0.3s ease;
}

/* ===== Smooth Transitions ===== */
.btn,
.btn-primary,
.btn-secondary,
.btn-logout,
.nav-item,
.chat-item,
.wall-card,
.announcement-card,
.quick-link-card {
    transition: all 0.3s ease;
}

input,
textarea,
select {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* ===== Print Styles ===== */
@media print {
    .bottom-nav,
    .btn,
    .modal,
    .lightbox,
    .message-input-container,
    .btn-back {
        display: none !important;
    }
    
    body {
        background: #fff;
        padding: 0;
    }
}

/* ===== Responsive Dashboard ===== */
@media screen and (min-width: 768px) {
    .dashboard-container {
        padding: 30px;
    }
    
    .welcome-content h2 {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .quick-links {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
    
    .welcome-card {
        padding: 40px;
    }
}

@media screen and (max-width: 480px) {
    .quick-links {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .quick-link-card {
        padding: 15px 10px;
    }
    
    .quick-link-icon {
        font-size: 1.5rem;
    }
    
    .quick-link-desc {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}