/* Dashboard Specific Styles */

/* Edit Modal Styles */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop.show {
    display: flex !important;
}

/* Ensure modal content is properly centered */
.modal {
    position: relative;
    z-index: 10000;
    margin: 0 auto;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 10001;
    animation: modalSlideIn 0.3s ease-out;
    margin: 0 auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    flex-shrink: 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
}

.modal-header h2 i {
    color: white !important;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.modal-close i {
    color: white !important;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background: #f9fafb;
    flex-shrink: 0;
}

/* Form Styles in Modal */
.modal .form-group {
    margin-bottom: 1.5rem;
}

.modal .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.modal .required {
    color: #ef4444;
}

.modal input[type="text"],
.modal input[type="email"],
.modal input[type="date"],
.modal textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.modal input:focus,
.modal textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.modal textarea {
    min-height: 100px;
    resize: vertical;
}

/* Type Cards in Modal */
.modal .type-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.modal .type-card {
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.modal .type-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.modal .type-card.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.modal .type-card.active .type-icon {
    color: white !important;
}

.modal .type-card .type-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    transition: color 0.2s ease;
}

.modal .type-card h3 {
    margin: 0.5rem 0 0.25rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.modal .type-card p {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Business Details in Modal */
.modal .business-details {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
}

.modal .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Recurring Options in Modal */
.modal .recurring-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.modal .recurring-option {
    display: flex;
    align-items: center;
}

.modal .recurring-option input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

.modal .recurring-option label {
    margin-bottom: 0;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Reminder Options in Modal */
.modal .reminder-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.modal .reminder-option {
    display: flex;
    align-items: center;
}

.modal .reminder-option input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

.modal .reminder-option label {
    margin-bottom: 0;
    cursor: pointer;
    font-weight: 500;
}

/* Email Input Group in Modal */
.modal .email-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.modal .email-input-group input {
    flex: 1;
}

.modal .btn-add-email {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.modal .btn-add-email:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Email Tags in Modal */
.modal .email-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.modal .email-tag {
    background: #1e3d72;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal .email-tag .remove-email {
    background: #ef4444;
    color: white;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
}

.modal .email-tag .remove-email:hover {
    background: #dc2626;
}

/* Modal Buttons */
.modal .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.modal .btn-primary {
    background: var(--primary-color);
    color: white;
}

.modal .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.modal .btn-secondary {
    background: #6b7280;
    color: white;
}

.modal .btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        max-height: 95vh;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1.5rem;
    }
    
    .modal .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal .type-cards {
        grid-template-columns: 1fr;
    }
    
    .modal .recurring-options,
    .modal .reminder-options {
        grid-template-columns: 1fr;
    }
}

/* Quick Actions Button Styling */
.quick-action-item {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    color: inherit;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.quick-action-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Dashboard Header */
.dashboard-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 0 3rem;
}

.dashboard-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
}

.dashboard-title h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.dashboard-title p {
    font-size: 1.125rem;
    opacity: 0.9;
}

.dashboard-actions .btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dashboard-actions .btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    color: white;
}

/* Dashboard Statistics */
.dashboard-stats {
    padding: 3rem 0;
    background: var(--bg-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-icon.overdue {
    background: linear-gradient(135deg, var(--error-color), #c53030);
}

.stat-icon.due-today {
    background: linear-gradient(135deg, var(--warning-color), #d69e2e);
}

.stat-icon.due-soon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.stat-icon.total {
    background: linear-gradient(135deg, var(--success-color), #2f855a);
}
.stat-icon.due-month {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}
.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Dashboard Filters */
.dashboard-filters {
    padding: 2rem 0;
    background: white;
    border-bottom: 1px solid var(--border-color);
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-tab {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-light);
  padding: 0.75rem 1.10rem;
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.875rem;
}

.filter-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Dashboard Content */
.dashboard-content {
    padding: 3rem 0;
    min-height: 50vh;
}

.reminders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Reminder Cards */
.reminder-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.reminder-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.reminder-header {
    padding: 1.5rem 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.type-badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.type-badge.type-private {
    background: rgba(74, 123, 200, 0.1);
    color: var(--primary-color);
}

.type-badge.type-business {
    background: rgba(56, 178, 172, 0.1);
    color: var(--success-color);
}

.type-badge.type-miscellaneous {
    background: rgba(237, 137, 54, 0.1);
    color: var(--warning-color);
}

.status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.status-badge.status-overdue {
    background: rgba(229, 62, 62, 0.1);
    color: var(--error-color);
}

.status-badge.status-due_today {
    background: rgba(237, 137, 54, 0.1);
    color: var(--warning-color);
}

.status-badge.status-due_soon {
    background: rgba(74, 123, 200, 0.1);
    color: var(--primary-color);
}

.status-badge.status-upcoming {
    background: rgba(56, 178, 172, 0.1);
    color: var(--success-color);
}

.reminder-body {
    padding: 1.5rem;
}

.reminder-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.reminder-details {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-label {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.875rem;
}

.detail-value {
    color: var(--text-color);
    font-size: 0.875rem;
}

.reminder-due-date {
    margin-bottom: 1rem;
}

.due-date-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.due-date-info i {
    color: var(--primary-color);
    font-size: 1.125rem;
}

.due-date {
    font-weight: 600;
    color: var(--text-color);
}

.days-until {
    font-size: 0.875rem;
    color: var(--text-light);
}

.reminder-recurring,
.reminder-notifications,
.reminder-recipients {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.reminder-recurring:last-child,
.reminder-notifications:last-child,
.reminder-recipients:last-child {
    margin-bottom: 0;
}

.reminder-recurring i,
.reminder-notifications i,
.reminder-recipients i {
    color: var(--primary-color);
}

.reminder-actions {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.75rem;
}

.btn-action {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-color);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn-action:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-action.btn-delete:hover {
    border-color: var(--error-color);
    color: var(--error-color);
    background: rgba(229, 62, 62, 0.05);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.empty-icon {
    font-size: 4rem;
    color: var(--text-lighter);
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.empty-state .btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.empty-state .btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    color: white;
}

/* Quick Actions Floating Button */
.quick-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.quick-action-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    cursor: pointer;
}

.quick-action-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.quick-action-toggle.active {
    transform: rotate(45deg);
}

.quick-actions-menu {
    position: absolute;
    bottom: 80px;
    right: 0;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.quick-actions-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.quick-action-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.quick-action-item:last-child {
    border-bottom: none;
}

.quick-action-item:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.quick-action-item i {
    color: var(--primary-color);
    width: 20px;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

/* Chatbot Styles */
#chatbot-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6);
}

.chatbot-toggle:active {
    transform: scale(0.95);
}

.chatbot-window {
    position: fixed;
    bottom: 90px;
    left: 20px;
    width: 380px;
    height: 550px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: chatbotSlideIn 0.3s ease-out;
}

@keyframes chatbotSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
}

.chatbot-title i {
    font-size: 20px;
}

.chatbot-actions {
    display: flex;
    gap: 8px;
}

.chatbot-action-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.chatbot-action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

.chatbot-message {
    display: flex;
    gap: 10px;
    animation: messageSlideIn 0.3s ease-out;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bot-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.message-content {
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 70%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-message .message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.message-content p {
    margin: 0 0 8px 0;
    line-height: 1.5;
    font-size: 14px;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content ul {
    margin: 8px 0;
    padding-left: 20px;
}

.message-content li {
    margin: 4px 0;
    font-size: 14px;
    line-height: 1.5;
}

.typing-dots {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #667eea;
    animation: typingAnimation 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingAnimation {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

.chatbot-input {
    padding: 16px;
    background: white;
    border-top: 1px solid #e9ecef;
}

#chatbot-form {
    display: flex;
    gap: 8px;
}

#chatbot-message-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e9ecef;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

#chatbot-message-input:focus {
    border-color: #667eea;
}

.chatbot-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.chatbot-send-btn:hover {
    transform: scale(1.05);
}

.chatbot-send-btn:active {
    transform: scale(0.95);
}

.chatbot-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .filter-tabs {
        flex-direction: column;
    }

    .filter-tab {
        width: 100%;
        text-align: center;
    }

    .reminders-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .reminder-actions {
        flex-direction: column;
    }

    .btn-action {
        flex: none;
    }

    .quick-actions {
        bottom: 1rem;
        right: 1rem;
    }

    .quick-action-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .dashboard-header {
        padding: 3rem 0 2rem;
    }

    .dashboard-title h1 {
        font-size: 2rem;
    }

    .reminder-card {
        margin: 0 -0.5rem;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
    }
}

/* Profile Page Styles */
.profile-page .profile-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 0 3rem;
}

.profile-page .profile-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
}

.profile-page .profile-title h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-page .profile-title p {
    font-size: 1.125rem;
    opacity: 0.9;
}

.profile-page .profile-actions .btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-page .profile-actions .btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    color: white;
}

.profile-page .profile-content {
    padding: 3rem 0;
    background: var(--bg-light);
    min-height: 60vh;
}

.profile-page .profile-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.profile-page .profile-card,
.profile-page .stats-card,
.profile-page .security-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.profile-page .profile-card:hover,
.profile-page .stats-card:hover,
.profile-page .security-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.profile-page .card-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.profile-page .card-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.profile-page .card-header p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

.profile-page .card-body {
    padding: 2rem;
}

.profile-page .card-footer {
    padding: 1.5rem 2rem;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.profile-page .form-group {
    margin-bottom: 1.5rem;
}

.profile-page .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.profile-page .form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.profile-page .form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.profile-page .form-input.error {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.profile-page .error-message {
    display: block;
    margin-top: 0.5rem;
    color: var(--error-color);
    font-size: 0.875rem;
}

.profile-page .btn {
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.profile-page .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

.profile-page .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.profile-page .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.profile-page .btn-secondary {
    background: var(--text-light);
    color: white;
}

.profile-page .btn-secondary:hover {
    background: var(--text-color);
    transform: translateY(-2px);
}

.profile-page .btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.profile-page .btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.profile-page .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.profile-page .stat-item:last-child {
    border-bottom: none;
}

.profile-page .stat-label {
    font-weight: 500;
    color: var(--text-color);
}

.profile-page .stat-value {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--primary-color);
}

.profile-page .security-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.profile-page .security-action:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.profile-page .action-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.profile-page .action-info p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.875rem;
}

/* Change Password Page Styles */
.change-password-page .change-password-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 0 3rem;
}

.change-password-page .change-password-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
}

.change-password-page .change-password-title h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.change-password-page .change-password-title p {
    font-size: 1.125rem;
    opacity: 0.9;
}

.change-password-page .change-password-actions .btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.change-password-page .change-password-actions .btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    color: white;
}

.change-password-page .change-password-content {
    padding: 3rem 0;
    background: var(--bg-light);
    min-height: 60vh;
}

.change-password-page .change-password-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
}

.change-password-page .change-password-card,
.change-password-page .security-tips-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.change-password-page .change-password-card:hover,
.change-password-page .security-tips-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.change-password-page .password-input-wrapper {
    position: relative;
}

.change-password-page .password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: var(--transition);
}

.change-password-page .password-toggle:hover {
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
}

.change-password-page .password-requirements {
    margin-top: 0.75rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
}

.change-password-page .password-requirements p {
    margin: 0 0 0.5rem;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.875rem;
}

.change-password-page .password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.change-password-page .password-requirements li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    font-size: 0.875rem;
    color: var(--text-light);
}

.change-password-page .password-requirements li.valid {
    color: var(--success-color);
}

.change-password-page .password-requirements li.valid i {
    color: var(--success-color);
}

.change-password-page .password-requirements li i {
    color: var(--error-color);
}

.change-password-page .password-match-message {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    padding: 0.5rem;
    border-radius: var(--radius);
}

.change-password-page .password-match-message.match {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.change-password-page .password-match-message.no-match {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.change-password-page .tip-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.change-password-page .tip-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.change-password-page .tip-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.change-password-page .tip-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.change-password-page .tip-content p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
    font-size: 0.875rem;
}

.change-password-page .required {
    color: var(--error-color);
}

/* Shared Profile/Change Password Responsive Design */
@media (max-width: 768px) {
    .profile-page .profile-header-content,
    .change-password-page .change-password-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .profile-page .profile-title h1,
    .change-password-page .change-password-title h1 {
        font-size: 2rem;
    }

    .profile-page .profile-wrapper,
    .change-password-page .change-password-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .profile-page .card-header,
    .change-password-page .card-header {
        padding: 1.5rem 1.5rem 1rem;
    }

    .profile-page .card-body,
    .change-password-page .card-body {
        padding: 1.5rem;
    }

    .profile-page .card-footer,
    .change-password-page .card-footer {
        padding: 1rem 1.5rem;
        flex-direction: column;
    }

    .change-password-page .tip-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}

/* Enhanced Change Password Page Layout Fixes */
.change-password-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.change-password-page .change-password-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.change-password-page .change-password-card {
    width: 100%;
    max-width: none;
}

.change-password-page .security-tips-card {
    width: 100%;
    max-width: none;
}

.change-password-page .card-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.change-password-page .card-body {
    padding: 2rem;
}

.change-password-page .card-footer {
    padding: 1.5rem 2rem;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.change-password-page .form-group {
    margin-bottom: 1.5rem;
}

.change-password-page .password-input-wrapper {
    position: relative;
    width: 100%;
}

.change-password-page .form-input {
    width: 100%;
    padding: 0.875rem 3rem 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
    box-sizing: border-box;
}

.change-password-page .password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: var(--transition);
    z-index: 2;
}

.change-password-page .password-requirements {
    margin-top: 0.75rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
}

.change-password-page .tip-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    align-items: flex-start;
}

.change-password-page .tip-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.change-password-page .tip-content {
    flex: 1;
}

.change-password-page .tip-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.change-password-page .tip-content p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
    font-size: 0.875rem;
}

/* Improved mobile responsiveness for change password page */
@media (max-width: 768px) {
    .change-password-page .change-password-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .change-password-page .container {
        padding: 0 0.5rem;
    }
    
    .change-password-page .card-header {
        padding: 1.5rem;
    }
    
    .change-password-page .card-body {
        padding: 1.5rem;
    }
    
    .change-password-page .card-footer {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .change-password-page .tip-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1rem 0;
    }
}

/* Fix user dropdown positioning specifically for change password page */
.change-password-page header {
    position: relative;
    z-index: 1000;
}

.change-password-page .user-menu {
    position: relative;
    z-index: 1001;
}

.change-password-page .user-dropdown {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    z-index: 1002 !important;
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    border: 1px solid var(--border-color);
    margin-top: 5px;
}

.change-password-page .user-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.change-password-page .user-dropdown a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.change-password-page .user-dropdown a:last-child {
    border-bottom: none;
}

.change-password-page .user-menu.active .user-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(5px) !important;
}

.change-password-page .change-password-header,
.change-password-page .change-password-content {
    position: relative;
    z-index: 1;
}