/* Reset default margins and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styling */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    padding: 20px;
}

/* Center container */
.container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Headings */
h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #1a73e8;
    text-align: center;
}

h4.modal-title {
    font-size: 1.2rem;
    margin: 0;
}

/* Paragraphs and labels */
p, label {
    font-size: 1rem;
}

/* Form styling */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Input fields */
input[type="text"],
input[type="password"],
input[type="number"] {
    padding: 3px;
    margin-top: -10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    transition: border-color 0.3s;
}

input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

/* Buttons */
button, a.btn {
    display: inline-block;
    padding: 5px 10px;
    width: 100%;
    font-size: .8rem;
    font-family: Arial, Helvetica, sans-serif;
    color: #fff;
    background-color: #1a73e8;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    /* height: 45px; */
    transition: background-color 0.3s;
}

button:hover, a.btn:hover {
    background-color: #1557b0;
}

/* Flashed messages (alerts) */
.alert {
    padding: 10px;
    margin-bottom: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal.in {
    display: block;
}

.modal-dialog {
    position: relative;
    max-width: 500px;
    margin: 10% auto;
    background: transparent;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-header {
    padding: 15px;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
}

.modal-body {
    padding: 15px;
}

.modal-footer {
    padding: 15px;
    border-top: 1px solid #e5e5e5;
    text-align: right;
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 1.2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

/* Responsive design */
@media (max-width: 600px) {
    .container, .modal-dialog {
        padding: 15px;
        max-width: 100%;
    }
    h1 {
        font-size: 1.5rem;
    }
    .modal-dialog {
        margin: 20% auto;
    }
}