@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Rajdhani:wght@500;600;700&family=Teko:wght@400;600&display=swap');

:root {
    --val-red: #ff4655;
    --val-dark: #0f1923;
    --val-darker: #0a1118;
    --val-light: #ece8e1;
    --val-gray: #768079;
    
    --bg-color: #0b0c10;
    --panel-bg: rgba(15, 25, 35, 0.85);
    
    --font-heading: 'Teko', sans-serif;
    --font-sub: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(255, 70, 85, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(255, 70, 85, 0.08), transparent 25%);
    color: var(--val-light);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Background grid */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    z-index: -1;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.header-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--val-light);
    text-align: center;
    margin-bottom: 0.5rem;
    position: relative;
    text-shadow: 2px 2px 0px var(--val-red);
}

.header-subtitle {
    font-family: var(--font-sub);
    color: var(--val-gray);
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* CARDS / PANELS */
.val-card {
    background: var(--panel-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    width: 100%;
    max-width: 600px;
    position: relative;
    backdrop-filter: blur(10px);
    /* Clip path for the cut corners effect */
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.val-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: var(--val-red);
}

/* FORMS */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    font-family: var(--font-sub);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--val-light);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-control {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--val-light);
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.8rem 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--val-red);
    background: rgba(255, 70, 85, 0.05);
    box-shadow: inset 4px 0 0 var(--val-red);
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-row .form-group {
    flex: 1;
}

/* BUTTONS */
.val-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--val-red);
    color: var(--val-light);
    font-family: var(--font-sub);
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 1rem 2.5rem;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
}

.val-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    transition: all 0.5s ease;
}

.val-btn:hover {
    background-color: #ff5e6b;
    transform: translateY(-2px);
}

.val-btn:hover::after {
    left: 150%;
}

.val-btn.outline {
    background-color: transparent;
    border: 1px solid var(--val-red);
    color: var(--val-red);
}
.val-btn.outline:hover {
    background-color: rgba(255, 70, 85, 0.1);
}

/* ALERT MESSAGES */
.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-sub);
    font-weight: 600;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
    border-left: 4px solid transparent;
}
.alert-success {
    background: rgba(0, 255, 128, 0.1);
    color: #40ff99;
    border-left-color: #40ff99;
}
.alert-error {
    background: rgba(255, 70, 85, 0.1);
    color: var(--val-red);
    border-left-color: var(--val-red);
}

/* DECORATIONS */
.decor-number {
    position: absolute;
    top: -20px;
    right: 20px;
    font-family: var(--font-heading);
    font-size: 6rem;
    color: rgba(255,255,255,0.03);
    pointer-events: none;
    z-index: 0;
}

.footer {
    padding: 2rem;
    text-align: center;
    font-family: var(--font-sub);
    color: var(--val-gray);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* ADMIN PANEL OVERRIDES */
.admin-container {
    max-width: 1400px;
}

.admin-card {
    max-width: 100%;
}

.val-table-container {
    overflow-x: auto;
    margin-top: 2rem;
}

.val-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
}

.val-table th {
    font-family: var(--font-sub);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--val-red);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    text-align: left;
    letter-spacing: 1px;
}

.val-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--val-light);
}

.val-table tbody tr:hover {
    background-color: rgba(255,255,255,0.02);
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: var(--font-sub);
    letter-spacing: 1px;
}

.header-actions {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    gap: 1rem;
}
