/* ==========================================================================
   VPlug Dashboard & Global Stylesheet (Professional Green Theme)
   ========================================================================== */

/* --- 1. Root Variables & Global Resets --- */
:root {
    /* --- COLOR PALETTE --- */
    --bg-body: #f4f7fa;        /* Light Blue-Grey Background */
    --bg-card: #ffffff;        /* Pure White Cards */
    --bg-input: #ffffff;       /* White Inputs */
    
    /* --- TEXT COLORS (High Contrast) --- */
    --text-main: #051b3b;      /* Deep Navy Blue (Headings/Labels) */
    --text-body: #334155;      /* Dark Slate (Body text) */
    --text-muted: #64748b;     /* Readable Grey */
    --text-input: #000000;     /* Pure Black for Input Values */

    /* --- BRAND COLORS (Updated to Green) --- */
    --primary: #09f82b;        /* Your Brand Green */
    --primary-hover: #07d625;  /* Darker shade for hover */
    --primary-soft: rgba(9, 248, 43, 0.1);
    --secondary: #334155;      /* Deep Slate for secondary contrast */
    --accent: #051b3b;         /* Navy contrast */

    /* --- STATES --- */
    --error: #ea5455;          /* Red */
    --error-bg: #ffe5e5;
    --success: #09f82b;        /* Brand Green */
    --success-bg: #dff7e9;
    --info: #00cfe8;           /* Cyan */
    --warning: #ff9f43;        /* Orange */

    /* --- UI ELEMENTS --- */
    --border-color: #dbe0eb;   /* Soft Borders */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.08);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Inter', 'Segoe UI', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-body);
    min-height: 100vh;
    padding: 20px 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- 2. Main Layout & Reusable Components --- */

.container {
    max-width: 850px;
    margin: 0 auto;
}

/* Header Styles */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Back Button */
.btn-back {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn-back:hover {
    background: var(--primary);
    color: #000; /* Dark text on bright green for accessibility */
    transform: translateY(-2px);
    border-color: var(--primary);
}

/* Card Styles */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-md);
}

.card-header {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--text-main);
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed var(--border-color);
}

/* Buttons */
.btn {
    width: 100%;
    padding: 14px 15px;
    border-radius: 12px; /* Smoother radius */
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    margin-top: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: #000; /* Black text on neon green is highly readable */
    box-shadow: 0 4px 12px rgba(9, 248, 43, 0.25);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(9, 248, 43, 0.35);
}

.btn-primary:disabled {
    background-color: #a5a3ae;
    color: white;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert.error {
    background-color: var(--error-bg);
    color: var(--error);
    border-left: 4px solid var(--error);
}

.alert.success {
    background-color: var(--success-bg);
    color: #068a18; /* Darker green for text readability on light bg */
    border-left: 4px solid var(--primary);
}

/* --- 3. Form Styles --- */
.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    color: var(--text-input);
    font-weight: 500;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(9, 248, 43, 0.15);
}

/* --- 4. Table / List Styles --- */
.item-list .item {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 18px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.item-list .item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.item-icon.neutral { 
    background-color: var(--primary-soft); 
    color: #068a18; 
}

/* Status Badges */
.status-completed, .status-success { 
    background-color: var(--success-bg); 
    color: #068a18; 
}

/* --- 5. Custom Scrollbar for Green Theme --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}