/* Custom Styles for Project Manager */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Tab Buttons */
.tab-button {
    padding: 1rem 1.5rem;
    border-bottom: 3px solid transparent;
    color: #6B7280;
    font-weight: 500;
    transition: all 0.2s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    cursor: pointer;
}

.tab-button:hover {
    color: #2563EB;
    background-color: #F3F4F6;
}

.tab-button.active {
    color: #2563EB;
    border-bottom-color: #2563EB;
}

/* Tab Content */
.tab-content {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pre formated text */
pre {
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Project Card */
.project-card {
    padding: 1.5rem;
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.project-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-color: #2563EB;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-badge.active {
    background-color: #D1FAE5;
    color: #065F46;
}

.status-badge.inactive {
    background-color: #FEE2E2;
    color: #991B1B;
}

.status-badge.degraded {
    background-color: #FEF3C7;
    color: #92400E;
}

.status-badge.protected {
    background-color: #FEE2E2;
    color: #7F1D1D;
}

.status-badge.retired {
    background-color: #F3F4F6;
    color: #4B5563;
}

.summary-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    padding: 0.875rem;
    background: #FFFFFF;
}

.summary-card i {
    font-size: 1.25rem;
}

.summary-card strong {
    display: block;
    font-size: 1.375rem;
    line-height: 1.5rem;
    color: #111827;
}

.summary-card span {
    display: block;
    font-size: 0.75rem;
    color: #6B7280;
}

.summary-blue i { color: #2563EB; }
.summary-green i { color: #059669; }
.summary-yellow i { color: #D97706; }
.summary-red i { color: #DC2626; }
.summary-gray i { color: #6B7280; }

.project-group {
    margin-bottom: 2rem;
}

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

.project-group-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.project-group-header span {
    font-size: 0.875rem;
    color: #6B7280;
}

.project-card-protected {
    border-color: #FCA5A5;
    background: #FFFBFB;
}

.process-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.5rem;
}

.process-pill,
.note-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 0.375rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1rem;
}

.process-pill.online {
    background: #D1FAE5;
    color: #065F46;
}

.process-pill.offline {
    background: #FEE2E2;
    color: #991B1B;
}

.note-pill {
    background: #EFF6FF;
    color: #1E40AF;
    margin-right: 0.375rem;
    margin-bottom: 0.375rem;
}

/* Scrollbar Styling */
pre::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

pre::-webkit-scrollbar-track {
    background: #F3F4F6;
    border-radius: 4px;
}

pre::-webkit-scrollbar-thumb {
    background: #9CA3AF;
    border-radius: 4px;
}

pre::-webkit-scrollbar-thumb:hover {
    background: #6B7280;
}

/* Loading Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Notification */
.notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

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

.notification.success {
    background-color: #D1FAE5;
    color: #065F46;
    border-left: 4px solid #10B981;
}

.notification.error {
    background-color: #FEE2E2;
    color: #991B1B;
    border-left: 4px solid #EF4444;
}

.notification.info {
    background-color: #DBEAFE;
    color: #1E40AF;
    border-left: 4px solid #3B82F6;
}

/* Button Loading State */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .tab-button {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Dark mode terminal */
.terminal {
    background-color: #1F2937;
    color: #10B981;
    font-family: 'Courier New', Courier, monospace;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
}

/* Tooltip */
[title] {
    position: relative;
}

/* Animation for cards */
.card-enter {
    animation: cardEnter 0.3s ease-out;
}

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
