/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    flex: 1;
}

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    flex-direction: column;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
}

/* Main Content Styles */
.main-content {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h1 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-header p {
    text-align: left;
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Status Banner */
.status-banner {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.status-banner .status-icon {
    display: inline-block;
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Form Styles */
.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select,
.form-group .description-editor {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.form-group .description-editor:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Description Editor Specific Styles */
.description-editor {
    min-height: 200px;
    max-height: 500px;
    overflow-y: auto;
    font-family: inherit;
    line-height: 1.5;
    white-space: pre-wrap;
}

.description-editor .prompt {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin: 1rem 0 0.5rem 0;
    padding: 0.5rem;
    background: #e8f4f8;
    border-left: 4px solid #007bff;
    border-radius: 4px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.description-editor .prompt:first-child {
    margin-top: 0;
}

.description-editor .editable-area {
    display: block;
    min-height: 1.5em;
    margin-bottom: 0.5rem;
    padding: 0.25rem;
    border-radius: 3px;
}

.description-editor .editable-area:focus {
    background: #f0f8ff;
    outline: 1px dashed #007bff;
}

.description-editor .editable-area.empty:before {
    content: attr(data-placeholder);
    color: #6c757d;
    font-style: italic;
}

.form-group textarea {
    resize: none;
    min-height: 80px;
    overflow: hidden;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form Helper Styles */
.required {
    color: #e74c3c;
}

.help-text {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Information Block Styles */
.info-block {
    background: linear-gradient(135deg, #e3f2fd, #f0f8ff);
    border: 1px solid #bbdefb;
    border-radius: 8px;
    margin-top: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    display: none;
    animation: slideDown 0.3s ease-out;
}

.info-block-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: #1976d2;
}

.info-icon {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.info-block-content {
    color: #333;
    font-size: 0.9rem;
    line-height: 1.5;
}

.info-block-content p {
    margin-bottom: 0.75rem;
}

.info-block-content ul {
    margin: 0.75rem 0 0.75rem 1.5rem;
    padding: 0;
}

.info-block-content li {
    margin-bottom: 0.5rem;
}

.info-block-content strong {
    color: #1976d2;
}

.info-block-content em {
    color: #666;
    font-style: italic;
}

/* Other cybersecurity incident info styling */
#otherCybersecurityIncidentInfo {
    animation: slideDown 0.3s ease-out;
}

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

/* Message Styles */
.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 2rem 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .main-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .form-header h1 {
        font-size: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}