/* Basic Reset and Setup */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Header Styling */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.page-header h1 {
    color: #007bff;
    font-size: 2.2em;
    margin-bottom: 10px;
}

.page-header p {
    color: #6c757d;
    font-size: 1.1em;
}

/* Forms List Styling */
.forms-list {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Space between form items */
}

.form-item {
    display: flex;
    justify-content: space-between; /* Pushes download button to the right */
    align-items: center;
    padding: 15px 20px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.form-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-info {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

/* Icon Styling */
.form-info i {
    font-size: 1.5em;
    margin-right: 15px;
    width: 25px; /* Fixed width for alignment */
    text-align: center;
}

.icon-pdf { color: #dc3545; /* Red for PDF */ }
.icon-doc { color: #007bff; /* Blue for DOCX */ }
.icon-xls { color: #28a745; /* Green for XLSX */ }

.form-name {
    font-weight: bold;
    font-size: 1.1em;
    color: #333;
    margin-right: 10px;
}

.form-metadata {
    font-size: 0.9em;
    color: #6c757d;
}

/* Download Button Styling */
.download-btn {
    text-decoration: none;
    background-color: #28a745; /* Green button */
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    white-space: nowrap; /* Prevents button text from wrapping */
}

.download-btn:hover {
    background-color: #218838;
}

.download-btn i {
    margin-right: 5px;
}

/* Responsiveness for smaller screens */
@media (max-width: 600px) {
    .form-item {
        flex-direction: column; /* Stacks info and button vertically */
        align-items: flex-start;
    }
    
    .form-info {
        margin-bottom: 10px;
    }

    .download-btn {
        width: 100%; /* Full width button */
        text-align: center;
        padding: 12px;
    }
}