/* 위험정보 알리미 Premium custom style system */

:root {
    --primary-gradient: linear-gradient(135deg, #1e3a8a 0%, #0d9488 100%);
    --danger-gradient: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    --success-gradient: linear-gradient(135deg, #10b981 0%, #047857 100%);
    --warning-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.35);
    --premium-shadow: 0 8px 30px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    --hover-shadow: 0 15px 35px rgba(30, 58, 138, 0.08);
}

/* Glassmorphism Card Style */
.premium-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--premium-shadow);
    border-radius: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.premium-card:hover {
    box-shadow: var(--hover-shadow);
}

/* Hover Lift Effect */
.hover-lift {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--hover-shadow);
}

/* Vibrant Badges */
.badge-premium-s {
    background: var(--danger-gradient);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.badge-premium-a {
    background: var(--warning-gradient);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.badge-premium-b {
    background: var(--primary-gradient);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
}

/* Buttons System */
.btn-premium-primary {
    background: var(--primary-gradient);
    color: #ffffff !important;
    border: none;
    border-radius: 50rem;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.2);
    transition: all 0.25s ease;
}

.btn-premium-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.35);
    opacity: 0.95;
}

.btn-premium-danger {
    background: var(--danger-gradient);
    color: #ffffff !important;
    border: none;
    border-radius: 50rem;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
    transition: all 0.25s ease;
}

.btn-premium-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35);
    opacity: 0.95;
}

/* Smooth Table Styles */
.premium-table {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.premium-table th {
    background: #f8fafc !important;
    color: #334155 !important;
    font-weight: 600 !important;
    border-bottom: 2px solid #e2e8f0;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.premium-table td {
    vertical-align: middle;
    transition: background-color 0.2s;
}

.premium-table tr:hover td {
    background-color: #f1f5f9;
}

/* Soft Animations */
@keyframes pulse-slow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

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

/* GNB Upgrade */
.gnb-navbar-custom {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.gnb-link-custom {
    position: relative;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1rem !important;
    color: #475569 !important;
    white-space: nowrap !important;
    transition: color 0.25s ease;
}

.gnb-link-custom:hover {
    color: #0f172a !important;
}

.gnb-link-custom.active {
    color: #1e3a8a !important;
}

.gnb-link-custom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1.5rem;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.25s ease;
    border-radius: 3px 3px 0 0;
}

.gnb-link-custom.active::after, .gnb-link-custom:hover::after {
    transform: scaleX(1);
}

/* Premium Inline Inputs inside Tables */
.premium-inline-input {
    border: 1px solid transparent !important;
    background: transparent !important;
    transition: all 0.2s ease;
    border-radius: 0.375rem;
    font-weight: 500;
}
.premium-inline-input:hover {
    background: rgba(30, 58, 138, 0.03) !important;
    border-color: #cbd5e1 !important;
}
.premium-inline-input:focus {
    background: #ffffff !important;
    border-color: #1e3a8a !important;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15) !important;
    outline: none !important;
}

/* Standardized Subpage Hero Banner styles for UI consistency */




.hero-title {
    font-weight: 300;
    font-size: 2.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    display: block;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-title strong {
    font-weight: 800;
    color: #ffffff;
    font-size: 2.7rem;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Hero Info Floating Bubble */
.hero-bubble-wrapper {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.hero-bubble {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #1e3a8a;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    max-width: 90%;
}


/* --- Unified Hero Banner and Content Container --- */
.subpage-hero, .hero-banner {
    background: var(--primary-gradient);
    padding: 4.5rem 1rem 6.5rem 1rem !important;
    text-align: center;
    position: relative;
    box-shadow: inset 0 -15px 30px rgba(0, 0, 0, 0.05);
}
.subpage-hero.no-bubble {
    padding: 4.5rem 1rem 8rem 1rem !important;
}
.content-container, .card-container {
    margin-top: -3.5rem !important;
    z-index: 10;
    position: relative;
    padding-bottom: 4rem;
}

/* --- Common Contractor Header Styles --- */
.top-utility { background-color: #ffffff; border-bottom: 1px solid #e1e8f0; font-size: 0.85rem; padding: 0.6rem 0; color: #666; }
.gnb-navbar { background-color: #ffffff; padding: 0; box-shadow: 0 2px 10px rgba(0,0,0,0.04); }
.gnb-navbar .navbar-brand { font-weight: 800; font-size: 1.6rem; letter-spacing: -1px; padding: 1.2rem 0; color: #333 !important; text-decoration: none;}
.gnb-navbar .navbar-brand span { color: #1e3a8a !important; }
.nav-link.gnb-link:hover { color: #000; }
.nav-link.gnb-link.active { color: #000; }
.nav-link.gnb-link.active::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background-color: #000; }
/* -------------------------------------- */
