/* style.css - Material Design complement styles for 1st Choice System */
/* Material Design Variables to match navigation */
:root {
    --primary-color: #1976d2;
    --primary-light: #42a5f5;
    --primary-dark: #1565c0;
    --accent-color: #2196f3;
    --text-primary: #212121;
    --text-secondary: #757575;
    --text-hint: #9e9e9e;
    --bg-light: #fafafa;
    --bg-white: #ffffff;
    --border-light: #e0e0e0;
    --border-lighter: #f5f5f5;
    --shadow-1: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-2: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    --shadow-3: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
    --radius-small: 4px;
    --radius-medium: 8px;
    --radius-large: 12px;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
}

body {
    background: var(--bg-light);
    font-family: 'Roboto', 'Inter', 'Segoe UI', system-ui, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    overflow-x: hidden;
    font-weight: 400;
}

/* Material Design Cards */
.card {
    background: var(--bg-white);
    border: 1px solid var(--border-lighter);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-1);
    transition: box-shadow 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.card:hover {
    box-shadow: var(--shadow-2);
}

.card-header {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
    border-bottom: 1px solid var(--border-lighter);
    border-radius: var(--radius-medium) var(--radius-medium) 0 0;
}

/* Material Design Buttons */
.btn {
    border-radius: var(--radius-small);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    box-shadow: var(--shadow-2);
    transform: translateY(-1px);
}

/* Material Design Form Elements */
.form-control {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-small);
    transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    font-size: 14px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2);
}

.form-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

/* Legacy nav-link styles (kept for compatibility) */
.nav-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-medium);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

.nav-link i {
    width: 20px;
    text-align: center;
}

.footer {
    padding: 2rem 0;
    margin-top: auto;
    background: #2c3e50;
    color: #fff;
}

.footer h5 {
    color: #fff !important;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    opacity: 0.9;
}

.footer a:hover {
    color: #fff;
    opacity: 1;
    text-decoration: none;
    transform: translateY(-1px);
}

.page-title {
    margin-top: 2rem;
    color: #2a357a;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.main-wrapper {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: linear-gradient(120deg, #e3e9ff 0%, #f8fafd 100%);
}

.header {
    width: 100%;
    background: #3949ab;
    color: #fff;
    padding: 24px 0 18px 0;
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    box-shadow: 0 2px 12px #c5cae9;
    margin-bottom: 0;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    animation: fadeInDown 0.7s cubic-bezier(.23,1.01,.32,1) 0.1s both;
}

@media (max-width: 600px) {
    .header { font-size: 1.3rem; padding: 16px 0 10px 0; }
}

.content {
    flex: 1 1 auto;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 3vw 32px 3vw;
    box-sizing: border-box;
    animation: fadeInUp 0.7s cubic-bezier(.23,1.01,.32,1) 0.1s both;
}

.form-container, .dashboard-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto 32px auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(57,73,171,0.10), 0 1.5px 8px rgba(57,73,171,0.04);
    padding: 40px 36px 32px 36px;
    transition: box-shadow 0.2s;
    animation: fadeInUp 0.7s cubic-bezier(.23,1.01,.32,1) 0.1s both;
}
@media (max-width: 900px) {
    .form-container, .dashboard-container { max-width: 98vw; padding: 18px 2vw; }
}

h2, h3 {
    margin-top: 0;
    color: #2a357a;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px #e3e9ff;
}

label {
    display: block;
    margin: 22px 0 7px 0;
    color: #3949ab;
    font-size: 16px;
    font-weight: 500;
}

input[type="text"], input[type="password"], input[type="email"], input[type="date"], select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #c5cae9;
    border-radius: 7px;
    font-size: 16px;
    background: #f6f8ff;
    margin-bottom: 2px;
    transition: border 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 2px #e3e9ff;
}
input:focus, select:focus {
    border: 1.5px solid #3949ab;
    outline: none;
    box-shadow: 0 0 0 2px #c5cae9;
}

button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, #3949ab 60%, #5c6bc0 100%);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 17px;
    font-weight: 700;
    margin-top: 28px;
    cursor: pointer;
    box-shadow: 0 2px 8px #e3e9ff;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.5px;
    animation: fadeIn 0.7s;
}
button:hover {
    background: linear-gradient(90deg, #1a237e 60%, #3949ab 100%);
    transform: translateY(-2px) scale(1.03);
}

.message {
    background: linear-gradient(90deg, #ffe082 60%, #fffde7 100%);
    color: #795548;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 22px;
    font-size: 15px;
    text-align: center;
    box-shadow: 0 1px 4px #f8e9c0;
    animation: fadeIn 0.7s;
}

a {
    color: #3949ab;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.18s;
}
a:hover {
    color: #1a237e;
    text-decoration: underline;
}

hr {
    border: none;
    border-top: 1.5px solid #e0e0e0;
    margin: 32px 0 24px 0;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 32px;
    background: #f8fafd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px #e3e9ff;
    animation: fadeIn 0.7s;
}
th, td {
    padding: 14px 10px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
}
th {
    background: #e3e9ff;
    color: #2a357a;
    font-weight: 600;
    font-size: 16px;
}
tr:last-child td {
    border-bottom: none;
}
.actions a {
    margin-right: 10px;
    font-size: 15px;
}

/* Insight Boxes & Dashboard */
.insight-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2vw;
    justify-content: space-between;
    margin-bottom: 32px;
}
.insight-box {
    flex: 1 1 220px;
    min-width: 220px;
    margin: 0;
    background: linear-gradient(120deg, #f5f7fa 60%, #e3e9ff 100%);
    border-radius: 12px;
    padding: 22px 0 18px 0;
    text-align: center;
    box-shadow: 0 2px 12px #e3e9ff;
    animation: fadeInUp 0.8s cubic-bezier(.23,1.01,.32,1) 0.2s both;
    transition: box-shadow 0.2s, transform 0.18s;
}
.insight-box:hover {
    box-shadow: 0 6px 24px #c5cae9;
    transform: translateY(-3px) scale(1.04);
}
.insight-box h3 {
    margin: 0 0 8px 0;
    color: #3949ab;
    font-size: 18px;
    font-weight: 600;
}

.recent-list {
    margin: 0; padding: 0; list-style: none;
}
.recent-list li {
    padding: 8px 0; border-bottom: 1px solid #eee;
    font-size: 15px;
}

/* Animations */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-40px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Responsive Flex for Dashboard */
@media (max-width: 1200px) {
    .content { max-width: 98vw; padding: 18px 2vw; }
}
@media (max-width: 900px) {
    .insight-row { flex-direction: column; gap: 18px; }
    .insight-box { min-width: 0; }
}
@media (max-width: 600px) {
    .form-container, .dashboard-container { padding: 10px 2vw; }
    .content { padding: 8px 1vw; }
}

/* Chart.js Responsive Fix */
canvas { max-width: 100% !important; height: auto !important; }

/* Utility */
::-webkit-input-placeholder { color: #b0b3c6; }
::-moz-placeholder { color: #b0b3c6; }
:-ms-input-placeholder { color: #b0b3c6; }
::placeholder { color: #b0b3c6; }
