/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(105deg, #779eea 0%, #7500ba2 100%); /* Professional gradient */
    color: #2d3748; /* Dark gray for better readability */
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #4a5568;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin: -30px -30px 40px -30px;
}

header h1 {
    color: #ffffff;
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Print Button */
.print-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.print-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

/* Form Sections */
.form-section {
    margin-bottom: 30px;
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.form-section:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.form-header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.form-header h2 {
    margin: 0;
    font-size: 1.8em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Toggle Button */
.toggle-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-btn:hover,
.toggle-btn:active {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: scale(1.05);
}

/* Form Content */
.form-content {
    padding: 25px;
    border-left: 5px solid #3b82f6;
    background-color: #f8fafc;
}

.form-content.hidden {
    display: none;
}

.form-content h3 {
    color: #1e40af;
    font-size: 1.4em;
    margin-bottom: 15px;
    font-weight: 600;
}

.form-content ul {
    list-style-type: none;
    padding-left: 0;
}

.form-content ul li {
    margin-bottom: 12px;
    color: #475569;
    font-size: 1.05em;
    padding-left: 30px;
    position: relative;
}

.form-content ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 1.2em;
}

/* Comment Section */
.comment-section {
    margin-top: 50px;
    padding: 30px;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid #38bdf8;
}

.comment-section h2 {
    color: #0c4a6e;
    margin-bottom: 20px;
    font-size: 2em;
}

.comment-section h3 {
    color: #075985;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5em;
}

/* Comment Form */
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.comment-form label {
    font-weight: bold;
    color: #1e40af;
    font-size: 1.1em;
}

.comment-form select,
.comment-form textarea {
    padding: 12px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.3s ease;
}

.comment-form select:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.add-comment-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    align-self: flex-start;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.add-comment-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

/* Comments Table */
#commentsTable {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#commentsTable thead {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

#commentsTable th {
    padding: 15px;
    text-align: left;
    color: #78350f;
    font-size: 1.1em;
    font-weight: bold;
}

#commentsTable tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s ease;
}

#commentsTable tbody tr:hover {
    background-color: #f1f5f9;
}

#commentsTable td {
    padding: 15px;
    color: #475569;
}

.delete-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.delete-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: scale(1.05);
}

/* Footer */
footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 2px solid #cbd5e1;
    text-align: center;
    color: #64748b;
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .container {
        box-shadow: none;
        padding: 0;
    }
    
    .print-btn,
    .toggle-btn,
    .comment-form,
    .delete-btn {
        display: none;
    }
    
    .form-content {
        display: block !important;
    }
    
    .comment-section {
        page-break-before: always;
    }
    
    header {
        background: #1e3a8a !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header {
        margin: -15px -15px 30px -15px;
        padding: 20px;
    }
    
    header h1 {
        font-size: 1.8em;
    }
    
    .form-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .form-header h2 {
        font-size: 1.4em;
    }
    
    #commentsTable {
        font-size: 0.9em;
    }
}