/* 
    Created by Clayton Kilkelly 2026
    Vehicle Reminder App – Styles
*/

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #111;
    color: #eee;
}

header {
    padding: 20px;
    text-align: center;
    background: #1c1c1c;
    border-bottom: 1px solid #333;
}

.vehicle-list {
    padding: 20px;
}

.card {
    background: #1b1b1b;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid #333;
}

.status {
    font-weight: bold;
    margin-top: 5px;
}

.green { color: #4caf50; }
.orange { color: #ff9800; }
.red { color: #f44336; }

button {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border-radius: 6px;
    border: none;
    background: #333;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background: #444;
}

button.danger {
    background: #b71c1c;
}

button.danger:hover {
    background: #c62828;
}

button.cancel {
    background: #555;
}

button.cancel:hover {
    background: #666;
}

.fab {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #4caf50;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 32px;
    border: none;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #222;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
}
.modal {
    z-index: 9999;
}

.vehicle-photo {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.no-photo {
    width: 100%;
    height: 120px;
    background: #333;
    color: #777;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* 
    Created by Clayton Kilkelly 2026
    Vehicle Reminder App – Floating Label Styles (Quantiq Style)
*/

.form-group {
    position: relative;
    margin-bottom: 22px;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="file"] {
    width: 100%;
    padding: 14px 10px 10px 10px;
    background: #1b1b1b;
    border: 1px solid #444;
    border-radius: 6px;
    color: #eee;
    font-size: 16px;
}

/* Base label */
.form-group label {
    position: absolute;
    top: 14px;
    left: 12px;
    color: #888;
    font-size: 14px;
    transition: 0.2s ease;
    pointer-events: none;
    background: transparent;
}

/* FLOAT LABEL — Quantiq method */
.form-group input:focus + label,
.form-group input:not([value=""]) + label {
    top: -8px;
    left: 8px;
    background: #222;
    padding: 0 4px;
    font-size: 12px;
    color: #4caf50;
}

/* File input fix */
.file-group input[type="file"] {
    padding: 8px;
}

.file-group input[type="file"] + label {
    top: -8px;
    left: 8px;
    background: #222;
    padding: 0 4px;
    font-size: 12px;
}
footer {
    position: relative;
    z-index: 1;
}
.site-footer {
    padding: 15px 20px 25px;
    background: #1c1c1c;
    border-top: 1px solid #333;
    position: relative;
    z-index: 1;
}

.modal {
    z-index: 9999;
}
/* Modern Clearout Input Fields */
.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="file"] {
    width: 100%;
    padding: 14px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    backdrop-filter: blur(6px);
    transition: 0.2s ease;
}

.form-group input:focus {
    border-color: #4caf50;
    background: rgba(76,175,80,0.15);
    outline: none;
}

/* Floating label upgrade */
.form-group label {
    position: absolute;
    top: 14px;
    left: 14px;
    color: #aaa;
    font-size: 14px;
    transition: 0.2s ease;
    pointer-events: none;
    background: transparent;
}

.form-group input:focus + label,
.form-group input:not([value=""]) + label {
    top: -8px;
    left: 10px;
    background: #222;
    padding: 0 4px;
    font-size: 12px;
    color: #4caf50;
}
.icon-btn {
    background: #1f1f1f;
    border: 1px solid #333;
    color: #eee;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    transition: 0.2s ease;
}

.icon-btn:hover {
    background: #2a2a2a;
    border-color: #4caf50;
}

.icon-btn.danger:hover {
    border-color: #f44336;
}