/*
 * Project: Mycabbook
 * Color Scheme: Deep Red and Clean White (Updated)
 */

/* Define Primary Color */
:root {
    --primary-red: #C00000; /* Deep Red for stronger appeal */
    --hover-red: #8B0000;  /* Darker Red for hover */
    --light-bg: #f8f9fa;  /* Very light grey background */
    --text-color: #212529; /* Dark text for better readability */
}

/* -------------------- Global Reset and Base Styles -------------------- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg); 
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.wrapper {
    width: 90%;
    max-width: 400px; 
    margin: 50px auto;
    padding: 30px; /* Increased padding */
    background-color: #fff; 
    border-radius: 10px; /* Softer edges */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Deeper shadow */
}

a {
    color: var(--primary-red); 
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--hover-red);
    text-decoration: underline;
}

/* -------------------- Typography and Headings -------------------- */
h1, h2, h3 {
    color: var(--text-color);
    border-bottom: 2px solid #ffcccc; /* Very light divider */
    padding-bottom: 5px;
    margin-bottom: 25px;
}

/* -------------------- Form Styles -------------------- */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600; /* Slightly bolder labels */
    color: #495057; /* Darker label color */
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="datetime-local"],
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
}

/* Error/Help Blocks */
.help-block, span[style*="red"] {
    display: block;
    font-size: 0.9em;
    color: var(--primary-red) !important; /* Error messages */
    margin-top: 5px;
}

/* -------------------- Button Style (Deep Red) -------------------- */
input[type="submit"], 
.btn-primary {
    background-color: var(--primary-red); 
    color: #fff;
    padding: 12px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 17px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    width: 100%; 
}

input[type="submit"]:hover, 
.btn-primary:hover {
    background-color: var(--hover-red); 
}

/* -------------------- Dashboard/Header Styles -------------------- */
.header {
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-align: center;
}

/* -------------------- Success/Error Messages -------------------- */
.alert-success, div[style*="green"] {
    background-color: #e6ffe6;
    border: 1px solid #00b300;
    color: #008000;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.alert-danger, div[style*="red"] {
    background-color: #ffe6e6;
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}