/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Header */
.header {
    background: linear-gradient(135deg, #783389 5%, #ED2B71 44%, #783389 87%);
    padding: 2rem;
    text-align: center;
    color: white;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
}

/* Main Content */
.content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #ed2b71, #ffb3b3);
    transition: transform 0.3s ease;
}

/* Training Card */
.training-card {
    background-color: #f3f3f3;
    color: #783389;
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid #783389;
}

/* Form Container */
.form-container {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #783389 5%, #ED2B71 44%, #783389 87%);
    padding: 2rem;
    text-align: center;
    color: white;
    width: 100%;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 1.5rem;
}

/* Employee ID Form */
.employee-id-form {
    display: flex;
    flex-direction: column;
}

.employee-id-form label {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.employee-id-form input {
    padding: 0.75rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-bottom: 1rem;
    width: 100%;
    font-size: 1rem;
}

.employee-id-form .btn-register {
    padding: 0.75rem;
    background-color: #783389;
    color: white;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.employee-id-form .btn-register:hover {
    background-color: #ED2B71;
}

/* Links */
a {
    color: #783389;
    text-decoration: underline;
}

a:hover {
    color: #ED2B71;
}

/* Pop-up message */
.popup-message {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #783389;
    color: white;
    border-radius: 5px;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Buttons */
button {
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button.primary {
    background-color: #783389;
    color: white;
    border: none;
}

button.primary:hover {
    background-color: #ED2B71;
}

button.secondary {
    background-color: transparent;
    color: #783389;
    border: 2px solid #783389;
}

button.secondary:hover {
    background-color: #ED2B71;
    color: white;
    border-color: #ED2B71;
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
    .content {
        padding: 1.5rem;
    }

    .training-card {
        padding: 1.5rem;
    }

    .header, .footer {
        padding: 1.5rem;
    }
}


/*  preview css */

/* Training Grid Layout */
.training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Training Preview Cards */
.training-preview {
    background-color: #fff;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.training-preview h3 {
    color: #783389;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.training-preview img.pptx-thumbnail {
    width: 60px;
    height: 60px;
    margin-bottom: 0.5rem;
}

.training-preview:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .training-grid {
        grid-template-columns: 1fr 1fr; /* Two columns for smaller screens */
    }

    .training-preview {
        padding: 0.75rem;
    }
}