/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
    position: relative;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.welcome-section, .form-section {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.welcome-section h2, .form-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 2rem;
}

.welcome-section p, .form-section p {
    margin-bottom: 30px;
    color: #666;
    font-size: 1.1rem;
}

/* Specialty Cards */
.specialties {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

@media (min-width: 992px) {
    .specialties {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .specialties {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .specialties {
        grid-template-columns: 1fr;
    }
}

.specialty-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.specialty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.specialty-card h3 {
    color: #495057;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.specialty-card p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

/* Buttons */
.auth-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

.btn-success {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.btn-danger {
    background: linear-gradient(45deg, #dc3545, #fd7e14);
    color: white;
}

.btn-info {
    background: linear-gradient(45deg, #17a2b8, #6f42c1);
    color: white;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

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

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control select {
    background: white;
}

/* Specialty Selection */
.specialty-selection {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

@media (min-width: 992px) {
    .specialty-selection {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .specialty-selection {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1600px) {
    .specialty-selection {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .specialty-selection {
        grid-template-columns: 1fr;
    }
}

.specialty-option {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    border: 3px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.specialty-option:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.specialty-option h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #495057;
}

.specialty-option p {
    color: #6c757d;
    margin: 0;
}

/* Patient Management */
.patient-actions, .action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.action-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.action-card:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.action-card h3 {
    color: #495057;
    margin-bottom: 10px;
}

.action-card p {
    color: #6c757d;
    margin: 0;
    font-size: 0.9rem;
}

/* Patient List */
.patient-list {
    margin-top: 30px;
}

.patient-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.patient-info h4 {
    color: #495057;
    margin-bottom: 5px;
}

.patient-info p {
    color: #6c757d;
    margin: 0;
    font-size: 0.9rem;
}

/* AI Assistant */
.ai-chat {
    max-width: 800px;
    margin: 0 auto;
}

.chat-container {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    min-height: 400px;
    max-height: 500px;
    overflow-y: auto;
}

.message {
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 10px;
}

.message.user {
    background: #667eea;
    color: white;
    margin-left: 50px;
}

.message.ai {
    background: white;
    border: 1px solid #e9ecef;
    margin-right: 50px;
}

.message-header {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.input-section {
    display: flex;
    gap: 10px;
}

.input-section textarea {
    flex: 1;
    min-height: 100px;
    resize: vertical;
}

/* Loading */
.loading {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert Messages */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: white;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .welcome-section, .form-section {
        padding: 30px 20px;
    }
    
    .specialties, .specialty-selection, .patient-actions, .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .auth-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .patient-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .message.user {
        margin-left: 20px;
    }
    
    .message.ai {
        margin-right: 20px;
    }
    
    .input-section {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5rem;
    }
    
    .welcome-section, .form-section {
        padding: 20px 15px;
    }
    
    .specialty-card, .action-card {
        padding: 20px;
    }
}

/* Patient History Page Styles */
.patient-info-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.patient-info-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.patient-info-card p {
    margin: 8px 0;
    font-size: 1.1em;
}

.patient-info-card strong {
    color: #34495e;
    font-weight: 600;
}

.consultation-history {
    margin-bottom: 30px;
}

.consultation-history h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.history-dialog {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    background: #fefefe;
}

.consultation-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.consultation-header h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.question-section, .answer-section {
    margin: 15px 0;
}

.question-section h5, .answer-section h5 {
    margin: 0 0 8px 0;
    color: #34495e;
}

.question-content {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    border-left: 4px solid #007bff;
}

.answer-content {
    background: #e3f2fd;
    padding: 10px;
    border-radius: 4px;
    border-left: 4px solid #28a745;
}

.history-footer {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
}

.no-history {
    text-align: center;
    padding: 30px;
    color: #6c757d;
}

.error-message {
    text-align: center;
    padding: 30px;
    color: #6c757d;
}

.error-message {
    background: #fee;
    color: #d32f2f;
    border-radius: 4px;
}

.no-history p {
    margin: 10px 0;
    font-size: 1.1em;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-buttons .btn {
    min-width: 200px;
}

/* Patient actions styling */
.patient-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.patient-actions .btn {
    flex: 1;
    min-width: 120px;
} 

/* Google ile giriş butonu stilleri */
.social-login {
    margin: 20px 0;
    text-align: center;
}

.social-login p {
    margin: 15px 0;
    color: #666;
    position: relative;
}

.social-login p::before,
.social-login p::after {
    content: "";
    display: inline-block;
    height: 1px;
    width: 100px;
    background: #ddd;
    position: absolute;
    top: 50%;
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.btn-google {
    background-color: #fff;
    color: #444;
    border: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 250px;
}

.btn-google:hover {
    background-color: #f8f8f8;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
} 

/* Hesap Ayarları Menüsü */
.account-menu {
    position: relative;
    display: inline-block;
}

.account-menu-btn {
    background: #009688;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.account-menu-btn:hover {
    background: #00796b;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.account-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    min-width: 180px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s ease;
    margin-top: 8px;
    border: 1px solid #e0e0e0;
}

.account-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.account-dropdown-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 10px 10px 0 0;
}

.account-dropdown-header h4 {
    margin: 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.account-dropdown-header p {
    margin: 5px 0 0 0;
    color: #666;
    font-size: 12px;
}

.account-dropdown-menu {
    padding: 8px 0;
}

.account-dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease;
    font-size: 14px;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.account-dropdown-item:hover {
    background: #f5f5f5;
    color: #009688;
}

.account-dropdown-item .icon {
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.account-dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 5px 0;
}

.logout-btn {
    color: #dc3545 !important;
}

.logout-btn:hover {
    background: #fff5f5 !important;
    color: #dc3545 !important;
}

/* Header'da hesap menüsü için düzenleme */
.header-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-actions .btn {
    padding: 10px 20px;
    font-size: 15px;
    border-radius: 20px;
}

.header-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.header-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Responsive tasarım */
@media (max-width: 768px) {
    .account-dropdown {
        right: -20px;
        min-width: 160px;
    }
    
    .header-actions {
        position: static;
        margin-top: 15px;
        justify-content: center;
    }
}

/* Tedavi mesajları için özel stil */
.treatment-message {
    border-left: 4px solid #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.1);
}

.treatment-message .message-header {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.treatment-actions {
    border-top: 1px solid #e9ecef;
    margin-top: 15px;
    padding-top: 15px;
}

.treatment-actions .btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.treatment-actions .btn-success {
    background-color: #28a745;
    color: white;
}

.treatment-actions .btn-success:hover {
    background-color: #218838;
    transform: translateY(-1px);
}

.treatment-actions .btn-info {
    background-color: #17a2b8;
    color: white;
}

.treatment-actions .btn-info:hover {
    background-color: #138496;
    transform: translateY(-1px);
}

.treatment-actions .btn-danger {
    background-color: #dc3545;
    color: white;
}

.treatment-actions .btn-danger:hover {
    background-color: #c82333;
    transform: translateY(-1px);
}

/* Modal stilleri */
.modal {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.modal-content {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: none;
}

.treatment-plan-card {
    transition: all 0.3s ease;
}

.treatment-plan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.status-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Email önizleme stilleri */
.email-preview {
    font-family: Arial, sans-serif;
}

.email-preview h1, .email-preview h2, .email-preview h3 {
    color: #2c5530;
}

.email-preview .header {
    background: linear-gradient(135deg, #2c5530, #4CAF50);
} 