/* Garet Font Import (가상 경로 설정) */
@font-face {
    font-family: 'Garet';
    src: url('assets/fonts/Garet-Book.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --uca-black: #f5f5f5;
    --uca-dark: #ffffff;
    --uca-text: #1a1a1a;
    --uca-muted: #666666;
}

body {
    background-color: var(--uca-black);
    color: var(--uca-text);
}

/* Background Grid Pattern */
.bg-grid {
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
}

/* Glassmorphism (Studio UCA Style) */
.glass-panel {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.glass-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.9) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Custom Scrollbar (UCA Style) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f0f0;
}
::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

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

.animate-enter {
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Utilities */
.text-balance { text-wrap: balance; }
input[type="file"]::file-selector-button { display: none; }

/* Select Box Styling */
select {
    background-color: rgba(255, 255, 255, 0.95) !important;
    color: #1a1a1a !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    border-radius: 6px !important;
    padding: 10px 14px !important;
    font-size: 15px !important;
    font-weight: normal !important;
    cursor: pointer;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a1a1a' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    padding-right: 30px !important;
    min-height: 40px !important;
    height: 40px !important;
    line-height: 1.3 !important;
    box-sizing: border-box !important;
}

select:hover {
    background-color: rgba(255, 255, 255, 1) !important;
    border-color: rgba(0, 0, 0, 0.25) !important;
}

select:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5) !important;
    background-color: rgba(255, 255, 255, 1) !important;
}

select option {
    background-color: #ffffff !important;
    color: #1a1a1a !important;
    padding: 8px;
    font-size: 15px !important;
}

/* Settlement History Filter Select Box - Larger Font */
.settlement-filter-select {
    font-size: 14px !important;
}

.settlement-filter-select option {
    font-size: 14px !important;
}

/* Dashboard Select Box - Larger Font */
.dashboard-select {
    font-size: 15px !important;
}

.dashboard-select option {
    font-size: 15px !important;
}

/* Author Select Box - Extra Large Font */
.author-select-large {
    font-size: 16px !important;
}

.author-select-large option {
    font-size: 16px !important;
    padding: 10px !important;
}

/* View Counts Select Box - Larger Font */
.view-counts-select {
    font-size: 14px !important;
}

.view-counts-select option {
    font-size: 14px !important;
}

/* Author Name Sparkle Effect - Twinkling */
.author-name-sparkle {
    color: #3b82f6;
    background: linear-gradient(90deg, #3b82f6, #60a5fa, #93c5fd, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: twinkle 2s ease-in-out infinite;
    position: relative;
    display: inline-block;
}

@keyframes twinkle {
    0%, 100% {
        filter: drop-shadow(0 0 3px rgba(59, 130, 246, 0.5))
                drop-shadow(0 0 6px rgba(96, 165, 250, 0.3));
        opacity: 0.8;
        transform: scale(1);
    }
    25% {
        filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.9))
                drop-shadow(0 0 12px rgba(96, 165, 250, 0.6))
                drop-shadow(0 0 16px rgba(147, 197, 253, 0.4));
        opacity: 1;
        transform: scale(1.02);
    }
    50% {
        filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.6))
                drop-shadow(0 0 8px rgba(96, 165, 250, 0.4));
        opacity: 0.9;
        transform: scale(1);
    }
    75% {
        filter: drop-shadow(0 0 10px rgba(59, 130, 246, 1))
                drop-shadow(0 0 15px rgba(96, 165, 250, 0.7))
                drop-shadow(0 0 20px rgba(147, 197, 253, 0.5));
        opacity: 1;
        transform: scale(1.02);
    }
}

/* Partner Dashboard Glow Effect */
.partner-dashboard-glow {
    animation: partner-glow 3s ease-in-out infinite;
}

@keyframes partner-glow {
    0%, 100% {
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.3),
                     0 0 12px rgba(255, 255, 255, 0.2);
    }
    50% {
        text-shadow: 0 0 12px rgba(255, 255, 255, 0.5),
                     0 0 18px rgba(255, 255, 255, 0.3),
                     0 0 24px rgba(255, 255, 255, 0.2);
    }
}

/* Notification Dropdown */
#notification-dropdown {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.notification-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Platform view item animation */
.platform-view-item {
    will-change: transform;
}

/* Navigation border utility */
.border-l-3 {
    border-left-width: 3px;
}

/* Navigation item hover effects */
nav a[data-page] {
    position: relative;
}

nav a[data-page]:hover {
    transform: translateX(2px);
}

nav a[data-page].active {
    transform: translateX(0);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    /* Glass panels and cards */
    .glass-panel,
    .glass-card {
        padding: 1rem !important;
        border-radius: 8px !important;
    }
    
    /* Tables - better mobile scrolling */
    .overflow-x-auto {
        -webkit-overflow-scrolling: touch;
        overflow-x: auto;
        overflow-y: auto;
    }
    
    table {
        font-size: 12px !important;
        min-width: 600px;
    }
    
    table th,
    table td {
        padding: 0.5rem 0.75rem !important;
        white-space: nowrap;
    }
    
    /* Charts - responsive heights */
    canvas {
        max-height: 250px !important;
    }
    
    /* Grid layouts */
    .grid {
        gap: 0.75rem !important;
    }
    
    /* Text sizes */
    h1 { font-size: 1.5rem !important; }
    h2 { font-size: 1.25rem !important; }
    h3 { font-size: 1.125rem !important; }
    
    /* Select boxes */
    select {
        font-size: 14px !important;
        padding: 8px 12px !important;
        min-height: 36px !important;
        height: 36px !important;
    }
    
    /* Buttons */
    button {
        font-size: 13px !important;
        padding: 0.5rem 0.75rem !important;
    }
    
    /* KPI Cards */
    .glass-card {
        padding: 1rem !important;
    }
    
    .glass-card .text-2xl {
        font-size: 1.5rem !important;
    }
    
    /* Mobile menu button */
    #mobile-menu-btn i {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    /* Content area padding */
    #content-area {
        padding: 1rem !important;
    }
    
    /* Sidebar width on mobile */
    #sidebar-nav {
        width: 280px;
    }
}

@media (max-width: 640px) {
    /* Extra small devices */
    table {
        font-size: 11px !important;
    }
    
    table th,
    table td {
        padding: 0.4rem 0.5rem !important;
    }
    
    canvas {
        max-height: 200px !important;
    }
    
    .glass-panel,
    .glass-card {
        padding: 0.75rem !important;
    }
    
    select {
        font-size: 13px !important;
    }
}