* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --recall-red: #DC143C;
    --recall-blue: #1e3a8a;
    --recall-dark-blue: #0f172a;
    --recall-light-blue: #3b82f6;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --success-green: #10b981;
    --warning-orange: #f59e0b;
    --info-blue: #3b82f6;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background: linear-gradient(135deg, var(--recall-dark-blue) 0%, var(--recall-blue) 100%);
    min-height: 100vh;
    color: #333;
}

.header {
    background: var(--recall-dark-blue);
    padding: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(220, 20, 60, 0.05) 10px,
        rgba(220, 20, 60, 0.05) 20px
    );
    pointer-events: none;
}

.header-image {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: block;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.page-title {
    background: white;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.page-title h1 {
    color: var(--recall-red);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-title h2 {
    color: var(--recall-blue);
    font-size: 1.3rem;
    font-weight: 500;
}

.controls {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.controls h3 {
    color: var(--recall-red);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.signup {
    background: white;
    font-size: 2.8rem;
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.signup h3 {
    color: var(--recall-red);
    font-size: 3.8rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legend {
    display: flex;
    gap: 20px;
    margin: 15px 0 20px 0;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: var(--gray-100);
    border-radius: 8px;
    font-weight: 500;
}

.legend-color {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.instructions {
    background: linear-gradient(135deg, var(--recall-blue), var(--recall-light-blue));
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 500;
    margin: 15px 0;
}

.instructions strong {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#map {
    height: 70vh;
    min-height: 500px;
    width: 100%;
    border: 4px solid var(--recall-blue);
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.status-buttons {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.status-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    color: white;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-visited { 
    background: linear-gradient(135deg, #10b981, #059669);
}
.btn-not-home { 
    background: linear-gradient(135deg, #f59e0b, #d97706);
}
.btn-delete { 
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

.status-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-visited:hover { filter: brightness(1.1); }
.btn-not-home:hover { filter: brightness(1.1); }
.btn-delete:hover { filter: brightness(1.1); }

#message {
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 8px;
    display: none;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.success { 
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    border-left: 4px solid #10b981;
}
.error { 
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border-left: 4px solid #ef4444;
}
.info { 
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

/* Login form specific styles */
.controls h5 {
    font-size: 1.3rem;
    color: var(--recall-blue);
    margin-bottom: 15px;
    font-weight: 600;
}

.controls p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.controls form {
    margin-top: 20px;
}

.controls table {
    width: 100%;
    max-width: 600px;
}

.controls table td {
    padding: 12px 8px;
}

.controls label {
    font-size: 1.2rem;
}

.controls label strong {
    font-weight: 600;
}

/* Input fields */
.controls input[type="text"],
.controls input[type="password"] {
    width: 100%;
    min-width: 280px;
    padding: 14px 16px;
    font-size: 1.1rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Roboto', Arial, sans-serif;
}

.controls input[type="text"]:focus,
.controls input[type="password"]:focus {
    outline: none;
    border-color: var(--recall-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* Submit button */
.controls input[type="submit"] {
    padding: 14px 32px;
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--recall-red), #b91c1c);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.controls input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
}

.controls input[type="submit"]:active {
    transform: translateY(0);
}

/* Error message styling */
.controls p[style*="color:#2d7eb0"] {
    font-size: 1.1rem !important;
    padding: 12px 16px;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-left: 4px solid #2d7eb0;
    border-radius: 6px;
    margin-top: 15px !important;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .page-title {
        padding: 20px 15px;
    }

    .page-title h1 {
        font-size: 1.5rem;
    }

    .page-title h2 {
        font-size: 1.1rem;
    }

    .controls {
        padding: 15px;
    }

    .controls h3 {
        font-size: 1.1rem;
    }
    
    .controls h5 {
        font-size: 1.1rem;
    }
    
    .controls label {
        font-size: 1rem;
    }
    
    .controls input[type="text"],
    .controls input[type="password"] {
        min-width: 200px;
        padding: 12px 14px;
        font-size: 1rem;
    }
    
    .controls input[type="submit"] {
        padding: 12px 24px;
        font-size: 1rem;
        margin-left: 0 !important;
        margin-top: 10px;
        width: 100%;
    }
    
    .controls table td {
        display: block;
        width: 100%;
        text-align: left !important;
    }

    .legend {
        gap: 10px;
    }

    .legend-item {
        padding: 6px 10px;
        font-size: 0.9rem;
    }

    .legend-color {
        width: 20px;
        height: 20px;
    }

    #map {
        height: 60vh;
        min-height: 400px;
        border-width: 3px;
    }

    .status-buttons {
        gap: 8px;
    }

    .status-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
        flex: 1;
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    .page-title h1 {
        font-size: 1.3rem;
    }

    .page-title h2 {
        font-size: 1rem;
    }
    
    .controls h5 {
        font-size: 1rem;
    }
    
    .controls input[type="text"],
    .controls input[type="password"] {
        font-size: 0.95rem;
    }

    .legend {
        flex-direction: column;
        gap: 8px;
    }

    .legend-item {
        width: 100%;
    }

    #map {
        height: 50vh;
        min-height: 350px;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
    }
    .controls {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}