/* Global Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

/* Header */
header {
    background-color: #003f8b;
    padding: 20px;
    text-align: center;
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
}

/* Main Section */
main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Input Section */
.input-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

#inputText {
    width: 100%;
    height: 180px;
    padding: 15px;
    font-size: 1.2rem;
    border: 2px solid #ccc;
    border-radius: 8px;
    resize: none;
    margin-bottom: 15px;
}

.input-buttons {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.floating-button {
    background-color: #f8f9fa;
    border: none;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.floating-button:hover {
    background-color: #003f8b;
    color: white;
}

.file-upload-label {
    background-color: #28a745;
    padding: 10px 15px;
    color: white;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.file-upload-label input {
    display: none;
}

.file-upload-label:hover {
    background-color: #218838;
}

.button {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

.button--loading {
    pointer-events: none;
    opacity: 0.6;
}

/* Result Section */
.result-section {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    display: none;
}

#matches {
    margin-top: 15px;
}

.match {
    background: #f9f9f9;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border-left: 4px solid #007bff;
}

/* PDF Button */
#generatePDF {
    background-color: #ffcd39;
    color: #333;
    font-size: 1.1rem;
    padding: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

#generatePDF:hover {
    background-color: #ffc107;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
}

.modal-body {
    margin-top: 15px;
    font-size: 1.2rem;
}

.close {
    font-size: 1.8rem;
    cursor: pointer;
}

.close:hover {
    color: red;
}

/* Pie Chart Styles */
#chartContainer {
    margin: 40px auto;
}

canvas {
    display: block;
    max-width: 100%;
}

/* Footer */
.site-footer {
    background-color: #003f8b;
    padding: 20px;
    text-align: center;
    color: white;
    font-size: 1rem;
    margin-top: 50px;
}

/* Social Icons */
.social-icons {
    margin-top: 10px;
}

.social-icons a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
    font-size: 1.4rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #ffd700;
}

/* Accessibility Features */
button:focus,
textarea:focus,
input:focus {
    outline: 3px solid #003f8b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .input-buttons {
        flex-direction: column;
        gap: 10px;
    }

    #inputText {
        height: 150px;
    }

    .site-footer {
        font-size: 0.9rem;
    }

    header {
        font-size: 1.5rem;
    }
}

/* Hacktobe Fest Section */
.hacktobe-fest {
    text-align: center;
    margin: 20px 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #003f8b;
}
