/* eTOM Service Quality Management System Styles */

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

body {
    font-family: 'Noto Sans KR', 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navigation */
.nav-link {
    display: inline-block;
    padding: 1rem 1.5rem;
    color: #4B5563;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-link:hover {
    color: #2563EB;
    background-color: #F3F4F6;
}

.nav-link.active {
    color: #2563EB;
    border-bottom-color: #2563EB;
    background-color: #EFF6FF;
}

/* Content Sections */
.content-section {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.content-section.active {
    display: block;
}

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

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* KPI Cards */
.kpi-card {
    padding: 1.5rem;
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.kpi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Stat Cards */
.stat-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

/* Process Boxes */
.process-box {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.process-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.process-box.highlight {
    border: 2px solid #10B981;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

/* Process Flow */
.process-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
}

.flow-step {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex: 0 1 180px;
    transition: all 0.3s ease;
}

.flow-step:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.flow-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    margin: 0 auto 1rem;
}

.flow-arrow {
    font-size: 2rem;
    color: #F59E0B;
    font-weight: bold;
}

/* Tech Items */
.tech-item {
    text-align: center;
    padding: 1.5rem;
    background: #F9FAFB;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: #F3F4F6;
    transform: translateY(-2px);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1D4ED8, #1E40AF);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Form Elements */
.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
}

.form-select:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: #F3F4F6;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #E5E7EB;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #E5E7EB;
}

.data-table tr:hover {
    background: #F9FAFB;
}

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

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

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

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

.badge-open {
    background: #DBEAFE;
    color: #1E40AF;
}

.badge-in-progress {
    background: #FEF3C7;
    color: #92400E;
}

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

.badge-closed {
    background: #F3F4F6;
    color: #374151;
}

/* Event Items */
.event-item {
    background: white;
    border-left: 4px solid #E5E7EB;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.event-item:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.event-item.critical {
    border-left-color: #DC2626;
    background: #FEF2F2;
}

.event-item.high {
    border-left-color: #F59E0B;
    background: #FFFBEB;
}

.event-item.medium {
    border-left-color: #3B82F6;
    background: #EFF6FF;
}

.event-item.low {
    border-left-color: #10B981;
    background: #F0FDF4;
}

/* Process List Items */
.process-item {
    background: white;
    border-left: 4px solid #2563EB;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.process-item:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.process-item.l2 {
    border-left-color: #10B981;
}

.process-item.l3 {
    border-left-color: #8B5CF6;
}

/* Loading Spinner */
.spinner {
    border: 4px solid #F3F4F6;
    border-top: 4px solid #2563EB;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .process-flow {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .kpi-card h3 {
        font-size: 2rem;
    }
}

/* Print Styles */
@media print {
    .nav-link,
    .btn-primary,
    header,
    footer {
        display: none;
    }
    
    .card {
        page-break-inside: avoid;
    }
}

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

::-webkit-scrollbar-track {
    background: #F3F4F6;
}

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

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

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, #2563EB, #7C3AED);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-glow {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}
