/* Global Styles */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: #f0f2f5;
}

/* Top Menu */
.topmenu {
    background: #1a73e8;
    padding: 12px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    box-shadow: 0px 1px 8px rgba(0,0,0,0.2);
}

.topmenu a {
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.topmenu a:hover {
    background: #0c56c3;
}

.topmenu .logout {
    background: #d9534f;
}

.topmenu .logout:hover {
    background: #c9302c;
}

/* Main Container */
.container {
    width: 450px;
    margin: 50px auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Headings */
h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    letter-spacing: 0.5px;
}

/* Inputs */
input, select, textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0 15px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    font-size: 15px;
    transition: 0.2s;
}

input:focus, textarea:focus, select:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 5px rgba(26,115,232,0.5);
}

/* Buttons */
button {
    width: 100%;
    padding: 12px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

button:hover {
    background: #0c56c3;
}

/* For View Page */
.view-box {
    padding: 12px;
    background: #fafafa;
    border-radius: 6px;
    margin-bottom: 12px;
    border-left: 4px solid #1a73e8;
}

.view-box strong {
    display: block;
    color: #444;
    margin-bottom: 4px;
}

/* Responsive */
@media (max-width: 500px) {
    .container {
        width: 90%;
    }
}


/* FORM 2-COLUMN DESIGN */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-grid-full {
    grid-column: span 2;
}

/* Input fields in card style */
.card-input {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    transition: 0.2s;
}

.card-input:focus-within {
    border-color: #1a73e8;
    box-shadow: 0 0 8px rgba(26,115,232,0.3);
}

.card-input label {
    font-size: 14px;
    color: #555;
}

.card-input input,
.card-input select,
.card-input textarea {
    margin-top: 6px;
    width: 100%;
    border: none;
    outline: none;
    font-size: 15px;
}

/* VIEW PAGE CARDS */
.view-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.view-box-modern {
    background: white;
    padding: 18px;
    border-radius: 10px;
    border-left: 4px solid #1a73e8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.view-box-modern strong {
    color: #333;
    font-size: 14px;
}

.view-box-modern p {
    margin-top: 5px;
    font-size: 15px;
    color: #555;
}
