/* Munkalap Kezelő CSS - Minimalista design */

.munkalap-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

.munkalap-shortcode-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}

/* Header */
.munkalap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.munkalap-header h1 {
    margin: 0;
    color: #2c3e50;
    font-size: 2.2em;
    font-weight: 300;
}

.logout-btn {
    background: #e74c3c;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.logout-btn:hover {
    background: #c0392b;
    color: white;
    text-decoration: none;
}

/* Sections */
.login-section,
.new-munkalap-section,
.user-dashboard {
    background: white;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.login-section h2,
.new-munkalap-section h2,
.user-dashboard h2 {
    margin-top: 0;
    color: #2c3e50;
    font-weight: 400;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Forms */
.munkalap-form {
    max-width: 500px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

/* Buttons */
.btn-primary {
    background: #3498db;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

/* Messages */
.message {
    padding: 12px;
    margin: 15px 0;
    border-radius: 4px;
    display: none;
}

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

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

/* User Dashboard */
.munkalap-details {
    margin-bottom: 30px;
}

.munkalap-details h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.detail-item {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #3498db;
}

.detail-item strong {
    color: #2c3e50;
}

/* Status badges */
.status-beérkezett,
.status-beerkezett {
    background: #fff3cd;
    color: #856404;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.status-folyamatban {
    background: #cce7ff;
    color: #004085;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.status-kész,
.status-kesz {
    background: #d1ecf1;
    color: #0c5460;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.status-kiadva {
    background: #f8f9fa;
    color: #6c757d;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

/* Messages section */
.messages-section {
    margin-top: 30px;
}

.messages-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.messages-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 4px;
}

.message-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
    margin: 0;
}

.message-item:last-child {
    border-bottom: none;
}

.message-item.user {
    background: #e3f2fd;
    margin-left: 20px;
}

.message-item.admin {
    background: #f3e5f5;
    margin-right: 20px;
}

.message-content {
    margin-bottom: 5px;
    font-size: 14px;
}

.message-meta {
    font-size: 12px;
    color: #666;
    text-align: right;
}

.message-form {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
}

/* Responsive design */
@media (max-width: 768px) {
    .munkalap-container {
        padding: 10px;
    }
    
    .munkalap-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .munkalap-header h1 {
        font-size: 1.8em;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .login-section,
    .new-munkalap-section,
    .user-dashboard {
        padding: 15px;
    }
    
    .message-item.user {
        margin-left: 10px;
    }
    
    .message-item.admin {
        margin-right: 10px;
    }
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #3498db;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}