/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0f172a;
    color: #e2e8f0;
    height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 100%;
}

/* Header */
header {
    background-color: #1e293b;
    padding: 1rem 2rem;
    border-bottom: 1px solid #334155;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #60a5fa;
}

.status-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-indicator.green {
    background-color: #10b981;
}

.status-indicator.yellow {
    background-color: #f59e0b;
}

.status-indicator.red {
    background-color: #ef4444;
}

.status-text {
    color: #94a3b8;
}

.time {
    margin-left: auto;
    color: #94a3b8;
}

/* Main content */
.main-content {
    display: flex;
    flex: 1;
    padding: 1rem;
    gap: 1rem;
    overflow: hidden;
}

.dashboard {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 350px;
}

.panel {
    background-color: #1e293b;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.panel h2 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #94a3b8;
    font-weight: 500;
}

.metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.metric {
    text-align: center;
}

.metric .value {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.metric .label {
    font-size: 0.8rem;
    color: #94a3b8;
}

.activity-feed, .meetings, .notifications-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-item, .meeting, .notification-item {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    background-color: #334155;
    border-radius: 4px;
    font-size: 0.9rem;
}

.activity-item .time, .meeting .time, .notification-item .time {
    color: #94a3b8;
    width: 50px;
    flex-shrink: 0;
}

.activity-item .message, .meeting .title, .notification-item .message {
    flex: 1;
}

.meeting .location {
    color: #94a3b8;
    margin: 0.25rem 0;
    font-size: 0.8rem;
}

.notification-item .message {
    margin-bottom: 0.5rem;
}

.notification-item .actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.notification-item .actions button {
    padding: 0.25rem 0.5rem;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
}

.notification-item .actions .fix-btn {
    background-color: #4f46e5;
    color: white;
}

.notification-item .actions .dismiss-btn {
    background-color: #64748b;
    color: white;
}

.status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
}

.status.ready {
    background-color: #10b981;
    color: white;
}

.status.warning {
    background-color: #f59e0b;
    color: white;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.view-all-btn {
    background-color: #4f46e5;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    cursor: pointer;
}

.view-all-btn:hover {
    background-color: #4338ca;
}

/* Command center */
.alert-panel {
    width: 300px;
    background-color: #1e293b;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #334155;
}

.alert-header h2 {
    font-size: 1rem;
    color: #94a3b8;
    font-weight: 500;
    margin: 0;
}

.alert-counters {
    display: flex;
    gap: 0.5rem;
}

.alert-counters span {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 0.8rem;
    font-weight: bold;
}

.high-count {
    background-color: #ef4444;
    color: white;
}

.medium-count {
    background-color: #f59e0b;
    color: white;
}

.low-count {
    background-color: #10b981;
    color: white;
}

.alert-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column-reverse;
}

.alert-item {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    background-color: #334155;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    animation: slideInAlert 0.3s ease-out;
}

@keyframes slideInAlert {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.alert-item.high {
    border-left: 4px solid #ef4444;
}

.alert-item.medium {
    border-left: 4px solid #f59e0b;
}

.alert-item.low {
    border-left: 4px solid #10b981;
}

.alert-item .time {
    color: #94a3b8;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.alert-item .message {
    margin-bottom: 0.5rem;
}

.alert-item .actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.alert-item .actions button {
    padding: 0.25rem 0.5rem;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
}

.alert-item .actions .fix-btn {
    background-color: #4f46e5;
    color: white;
}

.alert-item .actions .dismiss-btn {
    background-color: #64748b;
    color: white;
}

.command-center {
    flex: 2;
    display: flex;
    flex-direction: column;
    background-color: #1e293b;
    border-radius: 8px;
    overflow: hidden;
}

.chat-history {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.message {
    display: flex;
    margin-bottom: 1rem;
    gap: 1rem;
}

.message .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.message.user .avatar {
    background-color: #8b5cf6;
}

.message .content {
    flex: 1;
}

.message .content p {
    background-color: #334155;
    padding: 0.75rem;
    border-radius: 8px;
    margin: 0;
}

.message.user .content p {
    background-color: #4f46e5;
}

.command-input {
    display: flex;
    padding: 1rem;
    background-color: #0f172a;
    border-top: 1px solid #334155;
}

.command-input input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #334155;
    border-radius: 4px;
    background-color: #1e293b;
    color: #e2e8f0;
    font-size: 1rem;
}

.command-input button {
    margin-left: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #4f46e5;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.command-input button:hover {
    background-color: #4338ca;
}

/* Toasts */
.toasts {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background-color: #334155;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideIn 0.3s ease-out;
    max-width: 400px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.warning {
    border-left: 4px solid #f59e0b;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

.toast.success {
    border-left: 4px solid #10b981;
}

.toast .icon {
    font-weight: bold;
}

.toast .actions {
    margin-left: auto;
    display: flex;
    gap: 0.5rem;
}

.toast .actions button {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.8rem;
}

.toast .actions .fix-btn {
    color: #60a5fa;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .dashboard {
        max-width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .panel {
        flex: 1;
        min-width: 200px;
    }
}
