/* General body styles */
body {
    font-family: 'Roboto Condensed', sans-serif;
    background: url('/SMD/bg.jpg') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Header and Navbar styles */
header {
    width: 100%;
    background: #616161;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #333;
    color: white;
    padding: 10px 20px;
}

.navbar .logo img {
    width: 120px;
}

.navbar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.navbar nav ul li {
    margin-left: 20px;
}

.navbar nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}
/* Container for the form */
.form-container {
    background: #00000047;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    padding: 20px;
    width: 100%;
    max-width: 960px;
    margin-top: 80px;
    margin-bottom: 70px;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    font-weight: 200;
    color: rgb(255, 255, 255);
}

.form-section {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.form-section h2 {
    margin-top: 0;
    text-transform: uppercase;
    border-bottom: 2px solid #eee;
    color: #874e4e;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
}

input[type="text"], input[type="email"], input[type="date"], input[type="file"], select, textarea {
    width: 90;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.form-buttons {
    display: flex;
    justify-content: space-between;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

button.cancel {
    background-color: #fd7c7c;
    color: #fff;
    font-family: 'Roboto Condensed', sans-serif;
}

button.continue {
    background-color: #007BFF;
    color: white;
    font-family: 'Roboto Condensed', sans-serif;
}

button:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .form-container {
        padding: 10px;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    button {
        width: 100%;
        margin-top: 10px;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
    }

    nav ul li {
        margin: 10px 0;
    }
}

/* Table styles for view records */
.table-container {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    background: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background: #7f7f7f;
    color: white;
}

td img {
    max-width: 50px;
    height: auto;
}

.btn {
    background: #dd8383;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    text-decoration: none;
    transition: background 0.3s;
}

.btn:hover {
    background: #464646;
}

/* Print button styles */
.print-button {
    margin: 20px;
    text-align: center;
}

.a4-container {
    width: 210mm;
    margin: 0 auto;
    padding: 20mm;
    background: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.section {
    margin-bottom: 20px;
}

.btn-light-red {
    background: #f08080;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    text-decoration: none;
    margin-left: 10px;
    transition: background 0.3s;
}

.btn-light-red:hover {
    background: #e57373;
}
