/* ---------- GLOBAL ---------- */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f2f5;
}

/* ---------- NAVBAR ---------- */
.navbar {
    background: #4a90e2; /* solid blue */
    color: white;
    padding: 16px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border-bottom: 2px solid #357ABD;
}

.navbar a {
    background: #ffffff;
    color: #4a90e2;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.navbar a:hover {
    background: #e6f0fa;
}

/* ---------- PAGE CONTAINER ---------- */
.container {
    padding: 40px;
}

/* ---------- PAGE HEADER ---------- */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.page-title {
    margin: 0;
    font-size: 28px;
    color: #222;
}

.page-subtitle {
    margin: 0 0 5px 0;
    color: #555;
    font-size: 14px;
}

/* ---------- BUTTONS ---------- */
.btn-primary {
    background: #4a90e2;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.btn-primary:hover {
    background: #357ABD;
}

.btn-secondary {
    background: #e1e4e8;
    color: #333;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    margin-left: 10px;
}

.btn-secondary:hover {
    background: #d4d7db;
}

/* ---------- FORM CARD ---------- */
.form-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    max-width: 550px;
    margin-bottom: 30px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.form-card h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #222;
}

/* Inputs */
.form-card input,
.form-card textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 12px;
    border-radius: 6px;
    border: 1px solid #ccd3eb;
    font-size: 14px;
    box-sizing: border-box;
}

.form-card textarea {
    height: 40px;
    resize: none;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-actions button {
    padding: 10px 18px;
    font-size: 14px;
    border-radius: 6px;
}

/* ---------- TABLE ---------- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.data-table thead {
    background: #f5f5f5;
}

.data-table th {
    padding: 12px;
    text-align: left;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #ddd;
}

.data-table td {
    padding: 12px;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.data-table tr:hover {
    background: #f0f4ff;
}

/* ---------- ACTION BUTTONS ---------- */
.action {
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 13px;
    text-decoration: none;
    margin-right: 6px;
}

.action.edit {
    background: #17d864;  
    color: #fff;
    transition: background 0.2s;
}

.action.edit:hover {
    background: #157602;
}

.action.delete {
    background: #ef5350;  /* softer red */
    color: #fff;
    transition: background 0.2s;
}

.action.delete:hover {
    background: #e53935;
}

/* ---------- LOGIN PAGE ---------- */
.login-body {
    min-height: 100vh;
    background: #4a90e2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Login box */
.login-box {
    width: 400px;       /* narrower for balance */
    padding: 40px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    text-align: center;
}

/* App name */
.app-title {
    margin: 0;
    font-size: 22px;
    font-weight: bold;
    color: #4a90e2;
}

/* Login heading */
.login-title {
    margin: 12px 0 28px;
    font-size: 24px;
    color: #333;
}

/* Form wrapper */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Login inputs */
.login-form input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #cfd4e6;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.login-form input:focus {
    border-color: #4a90e2;
}

/* Login button */
.login-form button {
    width: 100%;
    padding: 12px 0;     /* matches input height */
    border-radius: 8px;
    background: #4a90e2;
    color: white;
    font-size: 15px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.login-form button:hover {
    background: #357ABD;
}

/* ===== CUSTOMER FORM (CLEAN & COMPACT) ===== */
.form-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    max-width: 900px;
    margin-bottom: 30px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* Form header */
.form-header h2 {
    margin: 0;
    font-size: 20px;
    color: #222;
}

.form-header p {
    margin: 4px 0 14px;
    font-size: 13px;
    color: #666;
}

/* Layout */
.customer-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Labels */
.form-group label {
    font-size: 12px;
    margin-bottom: 4px;
    color: #444;
}

/* Inputs & Textarea */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ccd3eb;
    box-sizing: border-box; 
}

.form-group textarea {
    height: 40px;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a90e2;
}

/* Form actions */
.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.form-actions button {
    background: #4a90e2;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.form-actions button:hover {
    background: #357ABD;
}
/* Modal Overlay */
.modal {
    display: none; /* hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.5);
}

/* Modal Content */
.modal-content {
    background: #fff;
    margin: 80px auto;
    padding: 20px;
    border-radius: 12px;
    max-width: 500px;
    position: relative;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}
