/* ============================================
   CSIRT Universitas Darunnajah - Custom CSS
   ============================================ */

/* ---- Base ---- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Google Sans', 'Google Sans Text', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #030712;
    min-height: 100vh;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #0f1629;
}
::-webkit-scrollbar-thumb {
    background: #1a73e8;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4285f4;
}

/* ---- Glass Card ---- */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

.glass-card-hover {
    transition: all 0.3s ease;
}
.glass-card-hover:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(66, 133, 244, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(66, 133, 244, 0.1);
}

/* ---- Gradient Text ---- */
.gradient-text {
    background: linear-gradient(135deg, #4285f4 0%, #34a853 50%, #4285f4 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

/* ---- Hero Background ---- */
.hero-bg {
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(26, 115, 232, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(52, 168, 83, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 60% 80%, rgba(234, 67, 53, 0.08) 0%, transparent 40%),
        linear-gradient(180deg, #0a0e1a 0%, #030712 100%);
}

/* ---- Grid Pattern ---- */
.grid-pattern {
    background-image: 
        linear-gradient(rgba(26, 115, 232, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 115, 232, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* ---- Animated Border ---- */
.animated-border {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.animated-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, #4285f4, #34a853, #4285f4);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* ---- Status Badge ---- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.025em;
}

/* ---- Timeline ---- */
.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #1a73e8, #34a853);
}

.timeline-item {
    position: relative;
    padding-left: 56px;
    padding-bottom: 28px;
}

.timeline-dot {
    position: absolute;
    left: 12px;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #1a73e8;
    background: #0f1629;
    z-index: 1;
}

.timeline-dot.active {
    background: #1a73e8;
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.2);
}

/* ---- Form Styles ---- */
.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 14px;
    color: #f3f4f6;
    font-family: 'Google Sans', sans-serif;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    outline: none;
}

.form-input:focus {
    border-color: rgba(66, 133, 244, 0.6);
    background: rgba(66, 133, 244, 0.05);
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.form-input::placeholder {
    color: rgba(156, 163, 175, 0.5);
}

.form-input option {
    background-color: #1a2340;
    color: #f3f4f6;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #d1d5db;
}

.form-label .required {
    color: #ea4335;
    margin-left: 2px;
}

/* ---- News Card ---- */
.news-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-card:hover {
    border-color: rgba(66, 133, 244, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

/* ---- Category Pill ---- */
.category-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.category-warning { background: rgba(234, 67, 53, 0.15); color: #f28b82; border: 1px solid rgba(234, 67, 53, 0.2); }
.category-info { background: rgba(26, 115, 232, 0.15); color: #7baaf7; border: 1px solid rgba(26, 115, 232, 0.2); }
.category-success { background: rgba(52, 168, 83, 0.15); color: #81c995; border: 1px solid rgba(52, 168, 83, 0.2); }
.category-neutral { background: rgba(255, 255, 255, 0.08); color: #9ca3af; border: 1px solid rgba(255, 255, 255, 0.1); }

/* ---- Alert Box ---- */
.alert-critical {
    background: rgba(234, 67, 53, 0.08);
    border: 1px solid rgba(234, 67, 53, 0.25);
    border-left: 3px solid #ea4335;
    border-radius: 8px;
    padding: 14px 16px;
}

.alert-warning {
    background: rgba(249, 171, 0, 0.08);
    border: 1px solid rgba(249, 171, 0, 0.25);
    border-left: 3px solid #f9ab00;
    border-radius: 8px;
    padding: 14px 16px;
}

.alert-info {
    background: rgba(26, 115, 232, 0.08);
    border: 1px solid rgba(26, 115, 232, 0.25);
    border-left: 3px solid #1a73e8;
    border-radius: 8px;
    padding: 14px 16px;
}

/* ---- Stat Card ---- */
.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-card.primary::after { background: linear-gradient(90deg, #1a73e8, #4285f4); }
.stat-card.success::after { background: linear-gradient(90deg, #1e8e3e, #34a853); }
.stat-card.danger::after { background: linear-gradient(90deg, #d93025, #ea4335); }
.stat-card.warning::after { background: linear-gradient(90deg, #e37400, #f9ab00); }

/* ---- Ticket Styles ---- */
.ticket-code {
    font-family: 'Google Sans Mono', 'Courier New', monospace;
    letter-spacing: 0.1em;
    background: rgba(26, 115, 232, 0.1);
    border: 1px solid rgba(26, 115, 232, 0.2);
    padding: 4px 12px;
    border-radius: 6px;
    color: #7baaf7;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ---- Spinner ---- */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---- Floating particles (decorative) ---- */
.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float var(--duration, 6s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

/* ---- Page Header ---- */
.page-header {
    background: 
        radial-gradient(ellipse at 30% 50%, rgba(26, 115, 232, 0.12) 0%, transparent 60%),
        linear-gradient(180deg, #0a0e1a 0%, #030712 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 48px 0 40px;
    position: relative;
    overflow: hidden;
}

/* ---- Prose (article content) ---- */
.prose-dark p { 
    margin-bottom: 1rem; 
    line-height: 1.75; 
    color: #d1d5db;
}
.prose-dark h2 { 
    font-size: 1.3rem; 
    font-weight: 700; 
    color: #f9fafb; 
    margin: 1.5rem 0 0.75rem;
}
.prose-dark h3 { 
    font-size: 1.1rem; 
    font-weight: 600; 
    color: #f3f4f6; 
    margin: 1.25rem 0 0.5rem;
}
.prose-dark ul { 
    list-style: disc; 
    padding-left: 1.5rem; 
    margin-bottom: 1rem; 
    color: #d1d5db;
}
.prose-dark ul li { 
    margin-bottom: 0.4rem; 
    line-height: 1.65;
}
.prose-dark ol { 
    list-style: decimal; 
    padding-left: 1.5rem; 
    margin-bottom: 1rem; 
    color: #d1d5db;
}
.prose-dark strong { 
    color: #f9fafb; 
    font-weight: 600;
}
.prose-dark a { 
    color: #7baaf7; 
    text-decoration: underline; 
    text-underline-offset: 3px;
}
.prose-dark blockquote {
    border-left: 3px solid #1a73e8;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #9ca3af;
    font-style: italic;
}

/* ---- Notification ---- */
.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    max-width: 400px;
    animation: slideInRight 0.3s ease-out;
}

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

/* ---- Admin Sidebar ---- */
.admin-sidebar {
    background: rgba(15, 22, 41, 0.98);
    border-right: 1px solid rgba(255,255,255,0.08);
    min-height: 100vh;
    width: 260px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    overflow-y: auto;
}

.admin-content {
    margin-left: 260px;
    min-height: 100vh;
    background: #030712;
}

@media (max-width: 1024px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .admin-sidebar.open {
        transform: translateX(0);
    }
    .admin-content {
        margin-left: 0;
    }
}

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

.data-table th {
    background: rgba(255, 255, 255, 0.04);
    color: #9ca3af;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #d1d5db;
    font-size: 0.875rem;
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}
