* {
    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, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    background: white;
    padding: 20px 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

header h1 {
    color: #667eea;
    font-size: 28px;
}

.user-info {
    color: #666;
    font-size: 14px;
}

.quote-banner {
    background: white;
    padding: 20px 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 20px;
    align-items: center;
}

.quote-icon {
    font-size: 48px;
    opacity: 0.3;
}

.quote-content {
    flex: 1;
}

.quote-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 8px;
}

.quote-text {
    font-size: 18px;
    font-style: italic;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.6;
}

.quote-date {
    font-size: 12px;
    color: #667eea;
    font-weight: bold;
}

.section {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.card h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

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

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

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #888;
    font-size: 12px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.error {
    color: #e53e3e;
    margin-top: 10px;
    font-size: 14px;
}

.jwt-display {
    margin-top: 20px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.jwt-display h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #4a5568;
}

.jwt-token {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    word-break: break-all;
    padding: 10px;
    background: white;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    color: #2d3748;
    max-height: 150px;
    overflow-y: auto;
}

.jwt-display small {
    display: block;
    margin-top: 8px;
    color: #718096;
}

.hidden {
    display: none !important;
}

.nav-tabs {
    background: white;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: #f7fafc;
    color: #666;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.tab-btn:hover {
    background: #e2e8f0;
}

.tab-btn.active {
    background: #667eea;
    color: white;
}

.logout-btn {
    margin-left: auto;
    background: #fc8181 !important;
    color: white !important;
}

.logout-btn:hover {
    background: #f56565 !important;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 15px;
    color: white;
    text-align: center;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.time-display {
    margin-top: 20px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
}

.time-display p {
    margin: 5px 0;
    color: #555;
}

#tasks-list {
    margin-top: 20px;
}

.task-item {
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s;
}

.task-item:hover {
    background: #edf2f7;
}

.task-item.completed {
    opacity: 0.6;
}

.task-item.completed .task-title {
    text-decoration: line-through;
}

.task-title {
    flex: 1;
    color: #333;
}

.task-actions {
    display: flex;
    gap: 10px;
}

.task-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.delete-btn {
    background: #fc8181;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}

.delete-btn:hover {
    background: #f56565;
}

#add-task-form {
    display: flex;
    gap: 10px;
}

#add-task-form .form-group {
    flex: 1;
    margin: 0;
}

#add-task-form input {
    width: 100%;
}

.game-info {
    color: #666;
    margin-bottom: 20px;
}

.info-text {
    color: #666;
    margin-bottom: 20px;
    padding: 15px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
}

#clockin-history {
    margin-top: 30px;
}

#clockin-history h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.history-item {
    padding: 12px;
    background: #f7fafc;
    border-radius: 6px;
    margin-bottom: 8px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.history-date {
    font-weight: bold;
    color: #667eea;
}

.history-time {
    color: #333;
}

.history-timezone {
    color: #888;
    font-size: 12px;
    margin-left: auto;
}

.no-records {
    text-align: center;
    color: #888;
    padding: 20px;
}

.success-message {
    background: #c6f6d5;
    color: #22543d;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    font-weight: bold;
}

.error-message {
    background: #fed7d7;
    color: #742a2a;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: center;
    font-weight: bold;
}

#game-date {
    color: #667eea;
    font-weight: bold;
    margin-bottom: 20px;
}

#game-board {
    margin-bottom: 20px;
}

.guess-row {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    justify-content: center;
}

.letter-box {
    width: 50px;
    height: 50px;
    border: 2px solid #d1d5db;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
}

.letter-box.correct {
    background: #48bb78;
    border-color: #48bb78;
}

.letter-box.present {
    background: #ecc94b;
    border-color: #ecc94b;
}

.letter-box.absent {
    background: #718096;
    border-color: #718096;
}

.game-input {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

#guess-input {
    width: 200px;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 18px;
    text-align: center;
}

#game-message {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

#game-message.success {
    background: #c6f6d5;
    color: #22543d;
}

#game-message.error {
    background: #fed7d7;
    color: #742a2a;
}

.result {
    padding: 20px;
    background: #f0fff4;
    border-left: 4px solid #48bb78;
    border-radius: 5px;
}

.result h3 {
    color: #22543d;
    margin-bottom: 10px;
}

.result code {
    background: #e6fffa;
    padding: 5px 10px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #234e52;
}
