.greenbot-calendar {
    padding: 20px;
}

.greenbot-calendar-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.greenbot-tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #546E7A;
    transition: all 0.3s ease;
}

.greenbot-tab-btn:hover {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.05);
}

.greenbot-tab-btn.active {
    color: #4CAF50;
    border-bottom-color: #4CAF50;
}

.greenbot-tab-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.greenbot-appointments-table {
    width: 100%;
    border-collapse: collapse;
}

.greenbot-appointments-table th,
.greenbot-appointments-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.greenbot-appointments-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #546E7A;
}

.greenbot-appointments-table tr:hover {
    background: #f8f9fa;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-scheduled {
    background: #fff3cd;
    color: #856404;
}

.status-confirmed {
    background: #d1ecf1;
    color: #0c5460;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.advisor-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.advisor-status-active {
    background: #d4edda;
    color: #155724;
}

.advisor-status-available {
    background: #d1ecf1;
    color: #0c5460;
}

.advisor-status-unavailable {
    background: #f8d7da;
    color: #721c24;
}

.advisor-assigned {
    color: #4CAF50;
    font-weight: 600;
}

.advisor-unassigned {
    color: #ff9800;
    font-style: italic;
}

.advisors-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.advisors-header h3 {
    margin: 0;
    font-size: 18px;
    color: #546E7A;
}

.advisors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.advisor-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    background: #fff;
    transition: all 0.3s ease;
}

.advisor-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.advisor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.advisor-header h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.advisor-body p {
    margin: 8px 0;
    font-size: 13px;
    color: #666;
}

.advisor-body strong {
    color: #333;
}

.advisor-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.advisor-actions .button {
    flex: 1;
    text-align: center;
}

.availability-days {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.availability-days label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.availability-days label:hover {
    background: #e9ecef;
}

.availability-days input[type="checkbox"] {
    cursor: pointer;
}

.schedule-config {
    margin-top: 20px;
}

.schedule-config table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-config th,
.schedule-config td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.schedule-config th {
    background: #f8f9fa;
    font-weight: 600;
    color: #546E7A;
}

.toggle-schedule {
    padding: 6px 16px;
    font-size: 12px;
}

.greenbot-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

.greenbot-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.greenbot-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e2e8f0;
}

.greenbot-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.greenbot-modal-close {
    color: #999;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.greenbot-modal-close:hover {
    background: #f8f9fa;
    color: #333;
}

.greenbot-modal-body {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
}

.greenbot-modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 20px 25px;
    border-top: 1px solid #e2e8f0;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

.form-group .description {
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.greenbot-cancel-btn {
    color: #666;
    border-color: #ddd;
}

.greenbot-cancel-btn:hover {
    background: #f8f9fa;
    border-color: #ccc;
}

.button-primary {
    background: #4CAF50 !important;
    border-color: #388E3C !important;
    color: white !important;
}

.button-primary:hover {
    background: #45a049 !important;
}

.greenbot-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999999;
}

.greenbot-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.greenbot-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 500px;
    padding: 15px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.greenbot-notification-success {
    border-left: 4px solid #4CAF50;
}

.greenbot-notification-error {
    border-left: 4px solid #f44336;
}

.greenbot-notification-info {
    border-left: 4px solid #2196F3;
}

.greenbot-notification-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .advisors-grid {
        grid-template-columns: 1fr;
    }
    
    .greenbot-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .greenbot-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
}