* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #2E69B1 0%, #11A19A 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #2E69B1 0%, #11A19A 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1em;
    opacity: 0.9;
}

header {
    position: relative;
}

.btn-logout {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    font-size: 0.9em;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Login Screen Styles */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #2E69B1 0%, #11A19A 100%);
    z-index: 1000;
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.login-container h1 {
    margin-bottom: 10px;
    color: #333;
}

.login-container p {
    margin-bottom: 30px;
    color: #666;
}

.login-container input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    margin-bottom: 20px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.login-container input[type="password"]:focus {
    outline: none;
    border-color: #2E69B1;
    box-shadow: 0 0 0 3px rgba(46, 105, 177, 0.1);
}

.login-error {
    margin-top: 15px;
    padding: 10px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 5px;
    display: none;
}

.login-error.show {
    display: block;
}

main {
    padding: 30px;
}

.form-section {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 0.95em;
}

input[type="email"],
input[type="text"],
select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="email"]:focus,
input[type="text"]:focus,
select:focus {
    outline: none;
    border-color: #2E69B1;
    box-shadow: 0 0 0 3px rgba(46, 105, 177, 0.1);
}

select {
    background: white;
    cursor: pointer;
    margin-bottom: 10px;
}

button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #2E69B1 0%, #11A19A 100%);
    color: white;
    width: 100%;
    font-size: 1.1em;
    padding: 15px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 105, 177, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

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

.btn-secondary {
    background: #f0f0f0;
    color: #333;
    margin-top: 10px;
    width: 100%;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.status-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    display: none;
}

.status-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.status-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.preview-section {
    margin-top: 40px;
    border-top: 2px solid #e0e0e0;
    padding-top: 30px;
}

.preview-section h2 {
    margin-bottom: 20px;
    color: #333;
}

.preview-container {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    min-height: 200px;
    max-height: 600px;
    overflow: auto;
    background: #f9f9f9;
}

.preview-placeholder {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 40px;
}

.preview-container iframe {
    width: 100%;
    border: none;
    min-height: 400px;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    main {
        padding: 20px;
    }
}
