/**
 * Doctors Portal Styles
 */

/* General Form Styles */
.doctors-portal-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.doctors-portal-form h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.3);
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 10px;
}

.remember-me label {
    margin-bottom: 0;
    font-weight: normal;
}

.doctor-submit {
    width: 100%;
    padding: 12px;
    background-color: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.doctor-submit:hover {
    background-color: #3a7bc8;
}

.doctor-submit:disabled {
    background-color: #b3b3b3;
    cursor: not-allowed;
}

.form-links {
    margin-top: 20px;
    text-align: center;
    display: flex;
    justify-content: space-between;
}

.form-links a {
    color: #4a90e2;
    text-decoration: none;
}

.form-links a:hover {
    text-decoration: underline;
}

.form-message {
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

.form-message.error {
    display: block;
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.form-message.success {
    display: block;
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

/* Dashboard Styles */
.doctors-portal-dashboard {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.doctors-portal-dashboard h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.dashboard-welcome {
    margin-bottom: 30px;
    text-align: center;
    font-size: 18px;
}

.dashboard-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.dashboard-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.dashboard-actions {
    margin-top: 30px;
    text-align: center;
}

.doctor-logout {
    padding: 10px 20px;
    background-color: #e53935;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.doctor-logout:hover {
    background-color: #c62828;
}

/* Dashboard Tabs */
.dashboard-tabs {
    margin: 30px 0;
}

.tabs-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    border-bottom: 1px solid #ddd;
}

.tabs-nav li {
    margin-right: 5px;
    margin-bottom: -1px;
}

.tabs-nav li a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #666;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-bottom-color: transparent;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s;
}

.tabs-nav li.active a {
    color: #333;
    background-color: #fff;
    border-bottom-color: #fff;
    font-weight: 600;
}

.tabs-nav li a:hover {
    background-color: #e9e9e9;
}

.tab-content {
    display: none;
}

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

.dashboard-message {
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 4px;
}

.dashboard-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.dashboard-message.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.field-note {
    margin-top: 5px;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* Account Button Styles */
.doctor-account-wrapper {
    display: flex;
    justify-content: center;
}

.doctor-account-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.doctor-account-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #4a90e2;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.doctor-account-button .button-icon {
    width: 16px;
    height: 16px;
}

.doctor-account-button:hover {
    background-color: #3a7bc8;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.doctor-account-button.register-button {
    background-color: #46b450;
}

.doctor-account-button.register-button:hover {
    background-color: #389e41;
}

.doctor-account-button.dashboard-button {
    background-color: #4a90e2;
}

.doctor-account-button.dashboard-button:hover {
    background-color: #3a7bc8;
}

/* For header placement */
.site-header .doctor-account-wrapper,
.main-header .doctor-account-wrapper,
.header-right .doctor-account-wrapper,
#masthead .doctor-account-wrapper {
    margin-left: auto;
}

/* Responsive styles for account buttons */
@media (max-width: 768px) {
    .doctor-account-buttons {
        gap: 5px;
    }
    
    .doctor-account-button {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    /* For very small screens, stack the buttons */
    @media (max-width: 480px) {
        .doctor-account-buttons {
            flex-direction: column;
            gap: 5px;
            width: 100%;
        }
        
        .doctor-account-button {
            width: 100%;
            justify-content: center;
        }
    }
}

/* Notifications and Messages Styles */
.dashboard-stats {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 5px;
    width: 45%;
}

.stat-count {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.notifications-list, .messages-list {
    margin-top: 20px;
}

.notification-item, .message-item {
    background-color: #f9f9f9;
    border-left: 4px solid #2196F3;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 0 4px 4px 0;
}

.notification-title, .message-title {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
}

.notification-content, .message-content {
    margin-bottom: 10px;
}

.notification-meta, .message-meta {
    font-size: 12px;
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-date, .message-date {
    color: #777;
}

.message-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.message-status.replied, .message-status.answered {
    background-color: #d4edda;
    color: #155724;
}

.message-status.pending {
    background-color: #fff3cd;
    color: #856404;
}

.message-reply {
    background-color: #e8f5e9;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    border-left: 3px solid #4CAF50;
}

.message-reply h5 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #2E7D32;
}

/* Messages Tabs */
.messages-tabs {
    margin-top: 20px;
}

.messages-tabs-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    border-bottom: 1px solid #ddd;
}

.messages-tabs-nav li {
    margin-right: 5px;
    margin-bottom: -1px;
}

.messages-tabs-nav li a {
    display: block;
    padding: 8px 15px;
    text-decoration: none;
    color: #666;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-bottom-color: transparent;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s;
}

.messages-tabs-nav li.active a {
    color: #333;
    background-color: #fff;
    border-bottom-color: #fff;
    font-weight: 600;
}

.messages-tabs-nav li a:hover {
    background-color: #e9e9e9;
}

.messages-tab-content {
    display: none;
}

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

/* Patient sharing styles */
.patient-share-container {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.patient-share-link {
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px;
    position: relative;
}

.patient-share-link input {
    flex-grow: 1;
    border: none;
    background: transparent;
    font-size: 12px;
    padding: 4px;
    cursor: text;
}

.copy-link-btn {
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 5px;
}

.copy-link-btn:hover {
    background-color: #3a7bc8;
}

.share-buttons {
    display: flex;
    gap: 8px;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
}

.share-button:hover {
    background-color: #3a7bc8;
}

.share-button.whatsapp {
    background-color: #25D366;
}

.share-button.whatsapp:hover {
    background-color: #128C7E;
}

.share-button.email {
    background-color: #D44638;
}

.share-button.email:hover {
    background-color: #B23121;
}

.copy-success {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4CAF50;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .doctors-portal-form,
    .doctors-portal-dashboard {
        padding: 20px;
    }
    
    .form-links {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Mobile responsive dashboard tabs */
    .tabs-nav {
        flex-direction: column;
        border-bottom: none;
    }
    
    .tabs-nav li {
        margin-right: 0;
        margin-bottom: 5px;
        width: 100%;
    }
    
    .tabs-nav li a {
        text-align: center;
        border-radius: 4px;
    }
    
    .tabs-nav li.active a {
        border-bottom: 1px solid #4a90e2;
    }
    
    .dashboard-stats {
        flex-direction: column;
    }
    
    .stat-item {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .patient-share-container {
        width: 100%;
    }
    
    .patient-share-link {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }
    
    .patient-share-link input {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .copy-link-btn {
        width: 100%;
        margin-left: 0;
    }
    
    .share-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .share-button {
        flex: 1;
        min-width: 80px;
        text-align: center;
    }
}
