:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --bg-light: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --white: #ffffff;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', system-ui, -apple-system, sans-serif; }

body { 
    background-color: var(--bg-light); 
    color: var(--text-main); 
    line-height: 1.6; 
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header & Navigation */
header { 
    background: var(--primary); 
    color: var(--white); 
    padding: 1rem 3rem; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h2 a {
    color: var(--white);
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

header nav a { 
    color: #cbd5e1; 
    text-decoration: none; 
    margin-left: 2rem; 
    font-weight: 500; 
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

header nav a:hover { 
    color: var(--white); 
}

/* Container */
.container { 
    max-width: 1280px; 
    width: 100%;
    margin: 2.5rem auto; 
    padding: 0 1.5rem; 
    flex: 1;
}

/* Buttons */
.btn { 
    background: var(--accent); 
    color: var(--white); 
    padding: 0.75rem 1.5rem; 
    border: none; 
    border-radius: var(--radius); 
    cursor: pointer; 
    text-decoration: none; 
    display: inline-block; 
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.btn:hover { 
    background: var(--accent-hover); 
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 4rem 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-section p {
    color: #94a3b8;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/* Product Grid & Cards */
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 2rem; 
}

.card { 
    background: var(--white); 
    border: 1px solid var(--border-color); 
    border-radius: var(--radius); 
    padding: 1.25rem; 
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    background: #f1f5f9;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 1.25rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Tables */
table { 
    width: 100%; 
    border-collapse: separate; 
    border-spacing: 0;
    margin-top: 1.5rem; 
    background: var(--white); 
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

th, td { 
    padding: 1rem 1.25rem; 
    text-align: left; 
    border-bottom: 1px solid var(--border-color); 
}

th { 
    background: #f1f5f9; 
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tr:last-child td {
    border-bottom: none;
}

/* Forms & Inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: var(--white);
}

input:focus, textarea:focus, select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-main);
}

/* Alerts */
.alert { 
    padding: 1rem 1.25rem; 
    margin-bottom: 1.5rem; 
    border-radius: var(--radius); 
    font-weight: 500;
}

.alert-error { 
    background: #fee2e2; 
    color: #dc2626; 
    border: 1px solid #fca5a5;
}

.alert-success { 
    background: #dcfce7; 
    color: #16a34a; 
    border: 1px solid #86efac;
}

/* Footer */
footer { 
    text-align: center; 
    padding: 2.5rem; 
    background: var(--primary); 
    color: #94a3b8; 
    margin-top: auto; 
    font-size: 0.9rem;
    border-top: 1px solid #1e293b;
}