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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #2C3E50;
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hidden {
    display: none !important;
}

/* Button Styles */
.btn {
    background: #3498DB;
    color: white;
    border: none;
    padding: 15px 10px;
    margin: 5px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #2980B9;
}

.btn:hover {
    background: #2980B9;
    transform: translateY(-1px);
}

.btn-primary {
    background: #3498DB;
}

.btn-purple {
    background: #9B59B6;
    border-color: #8E44AD;
}

.btn-purple:hover {
    background: #8E44AD;
}

.btn-orange {
    background: #F39C12;
    border-color: #E67E22;
}

.btn-orange:hover {
    background: #E67E22;
}

.btn-green {
    background: #27AE60;
    border-color: #229954;
}

.btn-green:hover {
    background: #229954;
}

.btn-red {
    background: #E74C3C;
    border-color: #C0392B;
}

.btn-red:hover {
    background: #C0392B;
}

.btn-large {
    font-size: 16px;
    padding: 20px 15px;
}

/* Main Portal Styles */
.header {
    background: #1A252F;
    padding: 20px;
    text-align: center;
}

.header h1 {
    font-size: 28px;
    font-weight: bold;
    color: #F39C12;
    margin-bottom: 5px;
}

.header p {
    font-size: 14px;
    color: #BDC3C7;
}

.main-content {
    display: flex;
    flex: 1;
    padding: 20px;
    gap: 20px;
}

.left-panel, .right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.left-panel h2, .right-panel h2 {
    font-size: 20px;
    font-weight: bold;
    color: white;
    margin-bottom: 15px;
}

.praise-card {
    background: #34495E;
    border-radius: 8px;
    padding: 15px;
    margin: 5px;
    border: 1px solid #4A5F7A;
    margin-bottom: 10px;
}

.praise-card h3 {
    font-size: 16px;
    font-weight: bold;
    color: #3498DB;
    margin-bottom: 5px;
}

.praise-card p {
    font-size: 12px;
    color: #BDC3C7;
    margin-bottom: 10px;
}

.praise-form {
    background: #34495E;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #4A5F7A;
    margin-bottom: 20px;
}

.praise-form label {
    display: block;
    color: #BDC3C7;
    font-size: 14px;
    margin-bottom: 5px;
}

.praise-form input,
.praise-form textarea {
    width: 100%;
    background: #2C3E50;
    color: white;
    border: 1px solid #4A5F7A;
    padding: 8px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.praise-form textarea {
    resize: vertical;
    min-height: 100px;
}

.selected-level {
    color: #F39C12;
    font-weight: bold;
    margin-bottom: 10px;
}

.recent-praises h3 {
    font-size: 18px;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
}

.praises-list {
    max-height: 150px;
    overflow-y: auto;
    background: #34495E;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #4A5F7A;
}

.praise-item {
    background: #2C3E50;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    border-left: 4px solid #F39C12;
}

.praise-item .level {
    font-weight: bold;
    color: #F39C12;
    font-size: 14px;
}

.praise-item .amount {
    color: #27AE60;
    font-weight: bold;
    font-size: 14px;
}

.praise-item .name {
    color: #3498DB;
    font-weight: bold;
    font-size: 12px;
    margin: 5px 0;
}

.praise-item .message {
    color: white;
    font-size: 14px;
    margin-bottom: 5px;
}

.praise-item .timestamp {
    color: #7F8C8D;
    font-size: 10px;
}

.footer {
    background: #1A252F;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats span {
    color: #BDC3C7;
    font-size: 14px;
}

.stats strong {
    color: #27AE60;
    font-weight: bold;
}

/* Login Window Styles */
.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    font-size: 32px;
    font-weight: bold;
    color: #F39C12;
    margin-bottom: 10px;
}

.login-header p {
    font-size: 14px;
    color: #BDC3C7;
}

.login-form {
    background: #34495E;
    border-radius: 8px;
    padding: 30px;
    width: 100%;
    border: 1px solid #4A5F7A;
}

.login-form label {
    display: block;
    color: #BDC3C7;
    font-size: 14px;
    margin-bottom: 5px;
}

.login-form input {
    width: 100%;
    background: #34495E;
    color: white;
    border: 1px solid #4A5F7A;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.error-message {
    color: #E74C3C;
    font-size: 12px;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 4px;
    border-left: 3px solid #E74C3C;
}

.hint {
    color: #7F8C8D;
    font-size: 11px;
    text-align: center;
    margin-top: 15px;
    font-style: italic;
}

.login-footer {
    margin-top: 20px;
    text-align: center;
}

/* Admin Portal Styles */
.admin-header {
    background: #1A252F;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-title h1 {
    font-size: 28px;
    font-weight: bold;
    color: #F39C12;
    margin-bottom: 5px;
}

.admin-title p {
    font-size: 14px;
    color: #BDC3C7;
}

.stats-dashboard {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #34495E;
    margin: 20px;
    border-radius: 8px;
    border: 1px solid #4A5F7A;
}

.stat-card {
    flex: 1;
    text-align: center;
    background: #2C3E50;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #4A5F7A;
}

.stat-card h3 {
    font-size: 16px;
    font-weight: bold;
    color: #27AE60;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.admin-content {
    flex: 1;
    padding: 20px;
}

.admin-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.admin-controls h2 {
    font-size: 20px;
    font-weight: bold;
    color: white;
}

.admin-praises-list {
    max-height: 400px;
    overflow-y: auto;
    background: #34495E;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #4A5F7A;
}

.admin-praise-item {
    background: #2C3E50;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #4A5F7A;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.admin-praise-item .content {
    flex: 1;
}

.admin-praise-item .level-amount {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.admin-praise-item .level {
    font-weight: bold;
    color: #F39C12;
    font-size: 16px;
}

.admin-praise-item .amount {
    color: #27AE60;
    font-weight: bold;
    font-size: 14px;
    margin-left: 5px;
}

.admin-praise-item .name {
    color: #3498DB;
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 2px;
}

.admin-praise-item .message-label {
    color: #BDC3C7;
    font-size: 12px;
    margin: 5px 0 2px 0;
}

.admin-praise-item .message {
    color: white;
    font-size: 14px;
    margin-bottom: 5px;
    word-wrap: break-word;
}

.admin-praise-item .timestamp {
    color: #7F8C8D;
    font-size: 10px;
}

.admin-praise-item .emoji {
    font-size: 24px;
    margin-left: 15px;
}

.admin-footer {
    background: #1A252F;
    padding: 15px;
    text-align: center;
}

/* Change Password Window Styles */
.change-password-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px;
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
}

.change-password-header {
    text-align: center;
    margin-bottom: 20px;
}

.change-password-header h2 {
    font-size: 24px;
    font-weight: bold;
    color: #F39C12;
}

.change-password-form {
    background: #34495E;
    border-radius: 8px;
    padding: 30px;
    width: 100%;
    border: 1px solid #4A5F7A;
}

.change-password-form label {
    display: block;
    color: #BDC3C7;
    font-size: 14px;
    margin-bottom: 5px;
}

.change-password-form input {
    width: 100%;
    background: #34495E;
    color: white;
    border: 1px solid #4A5F7A;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.button-group {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .stats-dashboard {
        flex-direction: column;
        gap: 10px;
    }
    
    .admin-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .admin-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #2C3E50;
}

::-webkit-scrollbar-thumb {
    background: #4A5F7A;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5A6F8A;
}
