/*
Theme Name: Academic Writing Theme
Author: Antigravity
Version: 1.0
Description: Custom theme for Academic Writing Platform
*/

:root {
    --primary-blue: #003087;
    --secondary-blue: #00205a;
    --accent-green: #28a745;
    --accent-red: #dc3545;
    --accent-yellow: #ffc107;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-color: #dee2e6;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Roboto', sans-serif; line-height: 1.6; color: var(--text-dark); background: var(--light-gray); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
header { background: var(--white); box-shadow: var(--shadow); padding: 15px 0; position: sticky; top: 0; z-index: 1000; }
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: bold; color: var(--primary-blue); }
.main-nav ul { display: flex; gap: 20px; }
.main-nav a { font-weight: 500; color: var(--primary-blue); }
.btn { padding: 10px 20px; border-radius: 5px; font-weight: bold; cursor: pointer; border: none; display: inline-block; }
.btn-primary { background: var(--primary-blue); color: var(--white); }
.btn-green { background: var(--accent-green); color: var(--white); }
.btn-red { background: var(--accent-red); color: var(--white); }
.btn-outline { border: 2px solid var(--primary-blue); color: var(--primary-blue); }

/* Hero & Calculator */
.hero { background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%); color: var(--white); padding: 60px 0; }
.hero .container { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero-text { flex: 1; }
.hero-text h1 { font-size: 48px; margin-bottom: 20px; line-height: 1.2; }
.hero-text p { font-size: 18px; margin-bottom: 30px; opacity: 0.9; }

.calculator-box { background: var(--white); padding: 30px; border-radius: 10px; width: 400px; color: var(--text-dark); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.calculator-box h3 { margin-bottom: 20px; text-align: center; color: var(--primary-blue); }
.calc-field { margin-bottom: 15px; }
.calc-field label { display: block; margin-bottom: 5px; font-weight: 500; font-size: 14px; }
.calc-field select, .calc-field input { width: 100%; padding: 10px; border: 1px solid var(--border-color); border-radius: 5px; }
.calc-price { font-size: 24px; font-weight: bold; color: var(--primary-blue); text-align: center; margin: 20px 0; }
.calc-price span { color: var(--accent-red); }

/* Dashboard Layout */
.dashboard-container { display: flex; min-height: calc(100vh - 70px); }
.sidebar { width: 250px; background: var(--secondary-blue); color: var(--white); padding: 20px 0; flex-shrink: 0; }
.sidebar-menu li a { display: block; padding: 15px 25px; color: rgba(255,255,255,0.8); border-left: 4px solid transparent; }
.sidebar-menu li a:hover, .sidebar-menu li a.active { background: rgba(255,255,255,0.1); color: var(--white); border-left-color: var(--accent-yellow); }
.main-content { flex: 1; padding: 30px; overflow-x: auto; }

/* Dashboard Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { background: var(--white); padding: 20px; border-radius: 8px; box-shadow: var(--shadow); border-left: 4px solid var(--primary-blue); }
.stat-card h4 { color: var(--text-light); font-size: 14px; margin-bottom: 10px; }
.stat-card .number { font-size: 28px; font-weight: bold; color: var(--text-dark); }

/* Tables */
.table-responsive { background: var(--white); border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 15px; text-align: left; border-bottom: 1px solid var(--border-color); }
th { background: #f1f4f8; font-weight: 600; color: var(--secondary-blue); }
tr:hover { background: #f9f9f9; }
.status-badge { padding: 5px 10px; border-radius: 15px; font-size: 12px; font-weight: bold; }
.status-available { background: #e3f2fd; color: #1976d2; }
.status-progress { background: #fff3e0; color: #f57c00; }
.status-completed { background: #e8f5e9; color: #388e3c; }
.status-cancelled { background: #ffebee; color: #d32f2f; }

/* Footer */
footer { background: var(--secondary-blue); color: var(--white); padding: 50px 0 20px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { margin-bottom: 20px; color: var(--accent-yellow); }
.footer-col ul li { margin-bottom: 10px; }
.copyright { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 14px; opacity: 0.7; }

/* Responsive */
@media (max-width: 768px) {
    .hero .container { flex-direction: column; }
    .calculator-box { width: 100%; }
    .dashboard-container { flex-direction: column; }
    .sidebar { width: 100%; }
}
