/* styles.css */

/* Fonts */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #4FC3F7, #81D4FA);
    color: #333;
    overflow-x: hidden;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    text-align: center;
    padding: 50px 20px;
}

/* Headings */
h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3em;
    color: #fff;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2em;
    color: #fff;
    margin-top: 40px;
    animation: fadeInUp 1s ease;
}

/* Upload Section */
.upload-section {
    margin-top: 30px;
    animation: fadeIn 1s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.upload-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.custom-file-upload {
    display: inline-block;
    padding: 15px 30px;
    cursor: pointer;
    background-color: #fff;
    color: #4FC3F7;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-right: 15px;
}

.custom-file-upload input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
}

.custom-file-upload:hover {
    background-color: #4FC3F7;
    color: #fff;
    transform: scale(1.05);
}

/* Upload Status */
.upload-status {
    position: relative;
    display: flex;
    align-items: center;
    font-size: 1em;
    color: #fff;
    animation: fadeIn 1s ease;
}

.upload-status span {
    margin-left: 5px;
}

.file-uploaded {
    color: #00ff00; /* Green color for success */
    font-weight: bold;
}

.file-uploaded .checkmark {
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-left: 10px;
    position: relative;
    animation: drawCheck 0.5s ease-in-out forwards;
}

.checkmark::before,
.checkmark::after {
    content: '';
    position: absolute;
    background-color: transparent;
    border-radius: 2px;
    transform-origin: left top;
}

.checkmark::before {
    width: 2px;
    height: 10px;
    left: 9px;
    top: 6px;
    border-left: 2px solid #00ff00;
    border-bottom: 2px solid #00ff00;
    transform: scaleX(0) scaleY(0) rotate(45deg);
}

.checkmark::after {
    width: 2px;
    height: 10px;
    left: 9px;
    top: 6px;
    border-left: 2px solid #00ff00;
    border-bottom: 2px solid #00ff00;
    transform: scaleX(0) scaleY(0) rotate(-45deg);
}

@keyframes drawCheck {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Loader */
#loader {
    margin-top: 30px;
    color: #fff;
    animation: fadeIn 1s ease;
}

.spinner {
    margin: 20px auto;
    width: 50px;
    height: 50px;
    border: 5px solid #fff;
    border-top: 5px solid #4FC3F7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Participants List */
#committee-selection {
    animation: fadeIn 1s ease;
}

#participants-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.participant {
    margin: 10px;
    flex: 1 1 200px;
    max-width: 200px;
}

.participant label {
    background-color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    text-align: left;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.participant input {
    margin-right: 10px;
}

.participant label:hover {
    background-color: #4FC3F7;
    color: #fff;
    transform: rotate(-5deg);
}

/* Committee Size Container */
.committee-size-container {
    margin-top: 30px;
    margin-bottom: 20px;
    text-align: center;
    color: #fff;
}

.committee-size-container label {
    font-size: 1.2em;
    margin-bottom: 10px;
    display: block;
    font-weight: bold;
}

.slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

#committee-size {
    width: 200px;
    margin-right: 15px;
}

#committee-size-value {
    font-size: 1.5em;
    font-weight: bold;
    color: #fff;
    width: 30px;
    text-align: center;
}

/* Slider Styling */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type="range"]:focus {
    outline: none;
}

input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    background: #fff;
    border-radius: 5px;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    border: none;
    height: 25px;
    width: 25px;
    border-radius: 50%;
    background: #4FC3F7;
    margin-top: -9px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: #3BAFDA;
}

input[type="range"]::-moz-range-track {
    width: 100%;
    height: 8px;
    background: #fff;
    border-radius: 5px;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    border: none;
    height: 25px;
    width: 25px;
    border-radius: 50%;
    background: #4FC3F7;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

input[type="range"]::-moz-range-thumb:hover {
    background: #3BAFDA;
}

/* Buttons */
button {
    padding: 15px 30px;
    margin-top: 30px;
    background-color: #fff;
    color: #4FC3F7;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #4FC3F7;
    color: #fff;
    transform: scale(1.05);
}

/* Meetings List */
#schedule-results {
    animation: fadeIn 1s ease;
}

#meetings-list {
    margin-top: 30px;
}

.meeting-item {
    background-color: rgba(255, 255, 255, 0.9);
    margin: 15px auto;
    padding: 20px;
    border-radius: 15px;
    max-width: 600px;
    text-align: left;
    color: #333;
    animation: slideInUp 0.5s ease;
    position: relative;
}

.meeting-item p {
    margin: 5px 0;
}

.meeting-item button {
    margin-top: 10px;
    padding: 10px 20px;
}

.meeting-item:before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 50px;
    height: 50px;
    background-color: #4FC3F7;
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
    opacity: 0.5;
}

/* Unscheduled Participants */
#unscheduled-participants {
    margin-top: 40px;
    color: #fff;
    animation: fadeIn 1s ease;
}

#unscheduled-participants h3 {
    font-family: 'Montserrat', sans-serif;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-15px);
        opacity: 1;
    }
}

/* Hidden Class */
.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5em;
    }
    h2 {
        font-size: 1.8em;
    }
    .custom-file-upload, button {
        padding: 12px 24px;
        font-size: 1em;
    }
    .participant label {
        padding: 8px 16px;
    }
    .meeting-item {
        padding: 15px;
    }
}
