/* Reset some default styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styling */
body {
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: lightgray;
}

/* Container styles */
.container {
    background-color: #fff;
    width: 100%;
    max-width: 450px;  /* Max width to limit form width */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: fadeInUp 0.5s ease-out forwards;
}

.container h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

/* Form group styling */
.form-group {
    margin-bottom: 15px;
    text-align: left;  /* Align text left inside form group */
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #555;
}

/* Input and Select styling */
input[type="text"], input[type="email"], input[type="password"], select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, select:focus {
    border-color: #172554;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

/* Submit button styling */
input[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #f8c800;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
    background-color: #f8c800;
}

/* Link styling */
a {
    display: inline-block;
    margin-top: 15px;
    color: #172554;
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    text-decoration: underline;
}

/* Pop-up styling */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    animation: popupShow 0.5s ease-out forwards;
}

.popup-content {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    width: 350px;
    max-width: 100%;
}

.popup-content h3 {
    font-size: 24px;
    color: #4CAF50;
    margin-bottom: 10px;
}

.popup-content p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #333;
}

.popup-link {
    padding: 10px 20px;
    background-color: #172554;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.popup-link:hover {
    background-color: #172554;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popupShow {
    0% {
        opacity: 0;
        visibility: hidden;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, -50%) scale(1);
    }
}


body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7fc;
}

.container {
    width: 50%;
    margin: 50px auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    font-weight: bold;
    display: block;
}

input[type="text"], input[type="number"], input[type="date"], input[type="file"], select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

input[type="submit"] {
    background-color: #172554;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

input[type="submit"]:hover {
    background-color: #f8c800;
}

.qty-group {
    margin-top: 10px;
}

.qty-group label {
    font-weight: bold;
    margin-bottom: 5px;
}

.qty-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-top: 5px;
}

small.form-text {
    font-size: 12px;
    color: #6c757d;
}


/* Styling untuk form-group */
.form-group {
    margin-bottom: 20px;
}

/* Styling untuk label */
.label {
    font-size: 16px;
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
    color: #333;
}

/* Container untuk input dan ikon */
.date-input-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Styling untuk input tanggal */
.date-input {
    padding: 10px 40px 10px 15px;
    font-size: 14px;
    border: 2px solid #ccc;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
    background-color: #fff;
    transition: border-color 0.3s ease;
}

.date-input:focus {
    border-color: #007bff;
    outline: none;
}

/* Styling untuk ikon kalender */
.calendar-icon {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    font-size: 18px;
    color: #007bff;
    pointer-events: none; /* Agar ikon tidak mengganggu input */
}

/* Styling untuk form-text */
.form-text {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* Tombol login */
.btn {
    background-color: #172554;
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn:hover {
    background-color: #f8c800;
    color: #172554;
}

@media (max-width: 768px) {
    .main-content {
        padding-top: 80px; /* Tambahkan jarak dari topbar */
    }
}
