/* General Settings */
html, body {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
}

h1 {
    font-size: 1.8rem;
    color: white;
    margin: 0;
}

/* Top Navigation Bar */
.topnav {
    background: linear-gradient(45deg, #FFD43B, #FFC107);
    padding: 10px;
}

.logo {
    height: 90px;
}

/* Authentication Bar */
#authentication-bar {
    background-color: #fffcf3;
    padding: 10px 0;
}

/* User Details */
#user-details {
    color: #92824a;
}

/* Content Styling */
.content {
    padding: 20px;
}

/* Card Grid Layout */
.card-grid {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Card Styling */
.card {
    background: linear-gradient(to bottom right, #ffffff, #f2f2f2);
    box-shadow: 2px 2px 12px 1px rgba(140, 140, 140, 0.5);
    padding: 20px;
    border-radius: 8px;
}

.card-title {
    font-size: 1.2rem;
    color: #FFD43B;
    margin-bottom: 10px;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 4px 4px 15px 3px rgba(0, 0, 0, 0.2);
}
.card-title i {
    font-size: 1.5rem;
    color: #FFD43B;
    margin-right: 8px;
}


/* Button Hover Effect */
.btn {
    transition: 0.3s ease-in-out;
}

.btn:hover {
    background-color: #ffcc00;
    color: #312f27;
}

.state {
    color: #312f27;
    font-size: 0.9rem;
}

/* Slide Switch Styling */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin: 8px 0;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #858585;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.4s ease-in-out, background-color 0.4s ease-in-out;
}

/* Checked state */
input:checked + .slider {
    background-color: #FFD43B;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Form Elements */
.form-elements-container {
    padding: 16px;
    width: 250px;
    margin: 0 auto;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    border: 1px solid #ccc;
    box-sizing: border-box;
    border-radius: 4px;
}

/* Footer Styling */
.footer {
    background: linear-gradient(to right, #FFD43B, #FFB300);
    color: white;
    font-size: 0.9rem;
}

.footer a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
}

.footer a:hover {
    color: #ffcc00;
    text-decoration: underline;
}


/* Responsive Design */
@media (max-width: 600px) {
    .topnav h1 {
        font-size: 1.4rem;
    }
    .card-grid {
        grid-template-columns: 1fr;
    }
    .form-elements-container {
        width: 90%;
    }
}