/* Data Management Page Styles */

.password-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.password-box {
    background-color: white;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 40px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.password-box h3 {
    margin: 0 0 15px 0;
    color: #333;
}

.password-box p {
    color: #666;
    margin-bottom: 20px;
}

.password-box input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 15px;
}

.password-error {
    color: #d32f2f;
    font-size: 14px;
    margin-top: 10px;
    min-height: 20px;
}

.data-section {
    margin-top: 20px;
}

.info-box {
    background-color: #e3f2fd;
    border: 2px solid #2196F3;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.info-box p {
    margin: 5px 0;
    color: #1976D2;
}

.data-input-area {
    margin-bottom: 20px;
}

.data-input-area textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    resize: vertical;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn-secondary {
    flex: 1;
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: #1976D2;
}

.btn-danger {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-danger:hover {
    background-color: #d32f2f;
}

.save-message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    display: none;
}

.save-message.success {
    background-color: #D4EDDA;
    color: #155724;
    border: 2px solid #4CAF50;
    display: block;
}

.save-message.error {
    background-color: #F8D7DA;
    color: #721C24;
    border: 2px solid #f44336;
    display: block;
}

.preview-section {
    background-color: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}

.preview-section h3 {
    margin-top: 0;
    color: #333;
}

#preview-area {
    max-height: 400px;
    overflow-y: auto;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.preview-table th,
.preview-table td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
}

.preview-table th {
    background-color: #667eea;
    color: white;
    font-weight: bold;
}

.preview-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.preview-table tr:hover {
    background-color: #e3f2fd;
}

/* Responsive */
@media (max-width: 768px) {
    .password-box {
        padding: 30px 20px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn-secondary,
    .btn-danger {
        width: 100%;
    }
}
