/* Internal Dashboard Specific Styles */

/* Header with User Info */
.header {
    width: calc(100% - 40px);
    margin: 0 20px 30px 20px;
    background: rgb(255, 254, 239);
    padding: 20px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    height: 40px;
    width: auto;
}

.header h1 {
    color: rgb(95, 22, 49);
    font-size: 28px;
    margin: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-name {
    color: rgb(95, 22, 49);
    font-weight: 600;
}

.logout-btn {
    padding: 10px 20px;
    background: rgb(95, 22, 49);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.logout-btn:hover {
    background: rgb(120, 35, 65);
}

/* Status Indicator */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s;
}

.status-indicator:hover {
    transform: scale(1.05);
}

.status-indicator.ok {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-indicator.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

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

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.ok {
    background: #28a745;
}

.status-dot.warning {
    background: #ffc107;
}

.status-dot.error {
    background: #dc3545;
}

/* Disruption Modal */
.disruption-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.disruption-modal {
    background: rgb(255, 254, 239);
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

.disruption-modal-header {
    padding: 24px;
    border-bottom: 2px solid rgb(95, 22, 49);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(95, 22, 49, 0.05);
}

.disruption-modal-header h2 {
    color: rgb(95, 22, 49);
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.disruption-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: rgb(95, 22, 49);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.disruption-modal-close:hover {
    background: rgba(95, 22, 49, 0.1);
}

.disruption-modal-body {
    padding: 24px;
}

.disruption-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.disruption-item {
    background: white;
    border-radius: 8px;
    padding: 16px;
    border-left: 4px solid #666;
}

.disruption-item.active {
    border-left-color: #ffc107;
    background: #fff3cd;
}

.disruption-item.resolved {
    border-left-color: #28a745;
    opacity: 0.7;
}

.disruption-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.disruption-title {
    font-size: 18px;
    font-weight: 600;
    color: rgb(95, 22, 49);
    margin: 0;
}

.disruption-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.disruption-badge.active {
    background: #ffc107;
    color: #856404;
}

.disruption-badge.resolved {
    background: #28a745;
    color: white;
}

.disruption-badge.upcoming {
    background: #17a2b8;
    color: white;
}

.disruption-time {
    font-size: 14px;
    color: #666;
    margin: 8px 0;
    font-style: italic;
}

.disruption-description {
    color: rgb(95, 22, 49);
    line-height: 1.6;
    margin: 0;
}

.no-disruptions {
    text-align: center;
    padding: 40px 20px;
    color: rgb(95, 22, 49);
}

.no-disruptions-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

/* Ticket Number */
.ticket-number {
    font-size: 24px;
    font-weight: 700;
    color: rgb(95, 22, 49);
    margin: 10px 0;
}

/* hCaptcha Modal */
.captcha-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgb(75, 15, 40) 0%, rgb(140, 45, 75) 50%, rgb(95, 22, 49) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.captcha-modal {
    background: rgb(255, 254, 239);
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.captcha-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.captcha-modal-header h2 {
    margin: 0 0 10px 0;
    color: rgb(95, 22, 49);
    font-size: 24px;
}

.captcha-modal-header p {
    margin: 0;
    color: rgb(95, 22, 49);
    font-size: 16px;
}

.captcha-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}