main {
}

body {
    background-color: #f5f7fa;
}

.content {
    max-width: 1300px;
}

/* Header Styles */
/* header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.nav-link {
    color: #555;
    transition: color 0.3s;
}
.nav-link:hover {
    color: #007bff;
}
 */

/* Class Cards */
.class-card {
    position: relative;
    background-image: linear-gradient(to right, rgb(239 246 255), rgb(249 250 251));
    /* background-color: #fff; */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
    animation: fadeInUp 0.4s ease forwards;
    cursor: pointer;
}

.class-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-image {
    width: 100%; /* Full width of the card */
    height: 8rem; /* Adjust height as needed */
    object-fit: cover; /* Ensures the image covers the area without distortion */
    border-radius: 0.375rem; /* Matches rounded-lg of card */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Light shadow for professional touch */
    margin-bottom: 1rem; /* Space below the image */
}

/* Tooltip for Info Icon */

.info-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 4.1px;
    right: 4.1px;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 17.5px;
}

.info-icon-container:hover {
    background-color: #E0E0E0; 
}

.info-icon {
    font-size: 1.2rem;
    color: #666;
}

.tooltip {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-5%);
    background-color: #555;
    color: #fff;
    text-align: left;
    padding: 5px;
    border-radius: 5px;
    white-space: normal;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.3s;
    width: 300px;
    max-width: 500px;
    max-height: 130px; 
    overflow-y: auto;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);    
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

/* Styling for the delete icon */

.delete-icon-container {
    position: absolute;
    bottom: 5px;
    right: 5px;
    padding: 0.5rem;
}

.delete-icon {
    font-size: 1rem;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s ease-in-out;
}

.delete-icon:hover {
    color: #ff4d4f; /* Red color on hover */
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}

.fab:hover {
    background-color: #0056b3;
}

.fab i {
    font-size: 1.5rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Slightly darker overlay */
    justify-content: center;
    align-items: center;
    z-index: 50;
}

.modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.4s ease-in-out;
}

/* Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
}

.close-modal {
    font-size: 1.8rem;
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: #000;
}

/* Input and Textarea Fields */
.input-field {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-field:focus {
    border-color: #4f46e5; /* Smooth purple focus */
    box-shadow: 0 0 5px rgba(79, 70, 229, 0.5); /* Subtle glow effect */
    outline: none;
}

/* Auto-Generate Description Button */
.auto-generate-btn {
    background-color: #4c9dff; /* Soft blue to blend with the professional theme */
    color: white;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: auto;
    margin-top: 1.2rem; /* Space from the description field */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

/* Icon styling */
.auto-generate-btn i {
    font-size: 1.3rem;
}

/* Hover effect */
.auto-generate-btn:hover {
    background-color: #4188c6; /* Slightly darker blue for hover */
    transform: translateY(-2px); /* Lift effect */
}

/* Active effect */
.auto-generate-btn:active {
    transform: translateY(1px); /* Slight push down effect on click */
}

/* Focus effect */
.auto-generate-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.4); /* Subtle outline for accessibility */
}

/* Auto-Generate Description Button - Dark Theme */
body.dark .auto-generate-btn {
    background-color: #5a8cff; /* Lighter blue to contrast with the dark background */
    color: white;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: auto;
    margin-top: 1.2rem; /* Space from the description field */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3); /* Subtle shadow with higher opacity for dark background */
}

/* Icon styling for the dark theme */
body.dark .auto-generate-btn i {
    font-size: 1.3rem;
}

/* Hover effect - Dark Theme */
body.dark .auto-generate-btn:hover {
    background-color: #4a80d1; /* Darker blue for hover */
    transform: translateY(-2px); /* Lift effect */
}
