/* index.css for noticetender (Premium UI applied) */

:root {
    --primary-color: #2563eb;       /* Trustworthy Blue */
    --primary-hover: #1d4ed8;
    --hero-bg: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --nav-bg: rgba(255, 255, 255, 0.95);
}

body {
    font-family: 'Pretendard', sans-serif;
    background-color: #f8fafc;
}

/* Premium Hero Section */
.hero-section {
    background: var(--hero-bg);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: 2rem;
    border-bottom-right-radius: 2rem;
    margin-bottom: 2rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1.5" fill="rgba(255,255,255,0.05)"/></svg>') repeat;
    opacity: 0.5;
    z-index: 0;
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
}

.hero-title span {
    color: #fef08a;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* Glassmorphism Card */
.hero-glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Buttons in Glass Card */
.btn-group .btn-outline-primary {
    border-color: #cbd5e1;
    color: #475569;
    background-color: #ffffff;
    transition: all 0.2s ease-in-out;
}

.btn-group .btn-check:checked + .btn-outline-primary,
.btn-group .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}

.premium-select {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
}

/* Data Containers */
.content-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
}

/* Grid.js Customizations */
.gridjs-td a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
    cursor: pointer;
}

.gridjs-td a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Modal styling */
#detailModal .modal-content {
    overflow: hidden;
}

#detailModal .modal-header {
    background: var(--hero-bg) !important;
}

.detail-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.detail-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    flex-wrap: wrap;
}

.detail-list li:last-child {
    border-bottom: none;
}

.detail-list li .label {
    font-weight: 600;
    color: #475569;
    width: 140px;
    flex-shrink: 0;
}

.detail-list li .value {
    color: #0f172a;
    flex-grow: 1;
}

.stats-content p {
    font-size: 1rem;
    color: #334155;
    line-height: 1.6;
}

.stats-content strong {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
    }
    .btn-group {
        flex-direction: column;
    }
    .btn-group .btn {
        border-radius: 0.375rem !important;
        margin-bottom: 0.5rem;
    }
    .detail-list li {
        flex-direction: column;
    }
    .detail-list li .label {
        width: 100%;
        margin-bottom: 4px;
        color: #64748b;
        font-size: 0.9rem;
    }
}

/* Global overrides for Grid.js */
.gridjs-th {
    white-space: nowrap !important;
}
.gridjs-th-content {
    white-space: nowrap !important;
    text-overflow: clip !important;
    overflow: visible !important;
}
button.gridjs-sort {
    display: none !important;
}

/* Fix mobile table squeezing and overlapping globally */
.gridjs-table {
    table-layout: auto !important;
    white-space: nowrap !important;
    min-width: max-content !important;
}

/* Helper for long text in table cells - allow wrap instead of ellipsis */
.table-cell-ellipsis {
    display: inline-block;
    max-width: 100%;
    white-space: normal;
    word-break: keep-all;
    vertical-align: middle;
}
