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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.navbar-slogan {
    font-size: 1em;
    color: #667eea;
    font-weight: 600;
    white-space: nowrap;
}

.navbar-slogan-small {
    font-size: 0.85em;
    color: white;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0.9;
}

.navbar-slogan-bar {
    text-align: center;
    padding: 8px 20px;
    background: rgba(102, 126, 234, 0.1);
    border-top: 1px solid rgba(102, 126, 234, 0.2);
}

.navbar-slogan-bar span {
    font-size: 0.95em;
    color: #667eea;
    font-weight: 600;
    letter-spacing: 2px;
}

.navbar-brand a {
    font-size: 2.2em;
    font-weight: 800;
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.navbar-brand a:hover {
    color: #f0f0f0;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 10px;
}

.nav-item {
    margin: 0;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s;
    font-weight: 700;
    font-size: 1.2em;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

.lang-switch {
    font-size: 0.9em;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 8px 0;
    z-index: 1000;
    margin-top: 5px;
}

.dropdown-menu.show {
    display: block;
    animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95em;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #667eea;
    padding-left: 25px;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 20px;
}

.container {
    max-width: 80%;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 30px;
}

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

.header h1 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    font-size: 1.1em;
}

.matrix-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.matrix-info h3 {
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.quadrants {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.quadrant {
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s;
}

.quadrant:hover {
    transform: scale(1.05);
}

.q1 {
    background: #ff6b6b;
    color: white;
}

.q2 {
    background: #4ecdc4;
    color: white;
}

.q3 {
    background: #ffe66d;
    color: #333;
}

.q4 {
    background: #95e1d3;
    color: #333;
}

.form-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

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

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

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

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

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

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

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

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

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-edit {
    background: #ffc107;
    color: #333;
    padding: 6px 12px;
    margin-right: 5px;
}

.btn-edit:hover {
    background: #e0a800;
}

.btn-delete {
    background: #dc3545;
    color: white;
    padding: 6px 12px;
}

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

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

.tasks-list {
    display: grid;
    gap: 15px;
}

.task-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.task-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.task-card.urgent-high::before {
    background: #ff6b6b;
}

.task-card.urgent-medium::before {
    background: #ffe66d;
}

.task-card.urgent-low::before {
    background: #4ecdc4;
}

.task-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 10px;
}

.task-title {
    font-size: 1.2em;
    color: #333;
    font-weight: 600;
}

.task-description {
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

.task-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.9em;
    color: #888;
}

.task-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.level-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
}

.level-high {
    background: #ff6b6b;
    color: white;
}

.level-medium {
    background: #ffe66d;
    color: #333;
}

.level-low {
    background: #4ecdc4;
    color: white;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.loading {
    text-align: center;
    color: #666;
    padding: 20px;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
}

.empty-state p {
    font-size: 1.1em;
}

/* Home Page Styles */
.home-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.hero-section {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    margin-bottom: 40px;
}

.hero-section h1 {
    font-size: 3em;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-section .lead {
    font-size: 1.3em;
    opacity: 0.9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.feature-card h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.feature-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.quick-stats {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.quick-stats h2 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

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

.stat-item {
    background: white;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 2.5em;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 1em;
}

.recent-tasks {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.recent-tasks h2 {
    color: #333;
    margin-bottom: 20px;
}

.task-item {
    padding: 15px;
    border-left: 4px solid #667eea;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    transition: all 0.3s;
}

.task-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.task-info h4 {
    color: #333;
    margin-bottom: 8px;
}

.task-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.9em;
    color: #666;
}

.text-muted {
    color: #999;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
}

.bg-success {
    background: #28a745;
    color: white;
}

.bg-warning {
    background: #ffc107;
    color: #333;
}

.bg-info {
    background: #17a2b8;
    color: white;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Footer Styles */
.site-footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    margin-top: auto;
}

.site-footer p {
    color: #666;
    margin: 5px 0;
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: #667eea;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Auth Pages Styles */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 20px;
}

.auth-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 450px;
    width: 100%;
}

.auth-card h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2em;
}

.auth-links {
    margin-top: 20px;
    text-align: center;
}

.auth-links p {
    color: #666;
}

.auth-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

.btn-block {
    width: 100%;
    margin-top: 10px;
}

/* Execute Task Page Styles */
.current-task-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.task-status-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.current-task-card h2 {
    font-size: 2em;
    margin-bottom: 15px;
}

.task-desc {
    font-size: 1.1em;
    opacity: 0.9;
    margin-bottom: 20px;
}

.task-meta-info {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-label {
    font-weight: 500;
}

.timer-section {
    text-align: center;
}

.timer-display {
    font-size: 4em;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.timer-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
}

.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.task-card-small {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.task-card-small:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.task-card-small h4 {
    color: #333;
    margin-bottom: 10px;
}

.task-desc-small {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
    line-height: 1.5;
}

.task-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.btn-start {
    width: 100%;
    padding: 10px;
}

.today-stats {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.today-stats h3 {
    color: #333;
    margin-bottom: 20px;
}

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

.stat-card {
    background: white;
    color: #333;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 5px;
    color: #667eea;
}

.stat-label {
    font-size: 1em;
    opacity: 0.9;
}

/* Report Page Styles */
.report-header {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.report-header h1 {
    font-size: 2em;
    color: #333;
    margin-bottom: 8px;
}

.report-header .subtitle {
    color: #666;
    font-size: 1.1em;
}

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

.stat-card-modern {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.stat-card-modern.success {
    border-left: 4px solid #28a745;
}

.stat-card-modern.warning {
    border-left: 4px solid #ffc107;
}

.stat-card-modern.info {
    border-left: 4px solid #17a2b8;
}

.stat-icon {
    font-size: 2.5em;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 2em;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 3px;
}

.stat-label {
    font-size: 0.95em;
    color: #666;
}

.section-title {
    font-size: 1.6em;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.quadrant-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.quadrant-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.quadrant-box {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    min-height: 250px;
    transition: all 0.3s;
}

.quadrant-box:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.quadrant-box.q1 {
    border-top: 4px solid #ff6b6b;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

.quadrant-box.q2 {
    border-top: 4px solid #4ecdc4;
    background: linear-gradient(135deg, #f0fffe 0%, #ffffff 100%);
}

.quadrant-box.q3 {
    border-top: 4px solid #ffe66d;
    background: linear-gradient(135deg, #fffef0 0%, #ffffff 100%);
}

.quadrant-box.q4 {
    border-top: 4px solid #95e1d3;
    background: linear-gradient(135deg, #f5fffc 0%, #ffffff 100%);
}

.quadrant-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.quadrant-header h3 {
    font-size: 1.2em;
    color: #333;
    margin: 0;
}

.quadrant-desc {
    font-size: 0.9em;
    color: #666;
    flex: 1;
}

.task-count {
    background: #667eea;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.9em;
    font-weight: 600;
}

.quadrant-tasks {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quadrant-task-item {
    background: white;
    padding: 12px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.quadrant-task-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateX(3px);
}

.task-title-small {
    font-size: 0.95em;
    color: #333;
    margin-bottom: 5px;
    font-weight: 500;
}

.task-action {
    font-size: 0.85em;
    color: #667eea;
}

.empty-text {
    color: #999;
    text-align: center;
    padding: 20px;
    font-style: italic;
}

.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
}

.chart-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.chart-card h3 {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.chart-card canvas {
    max-height: 300px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 2em;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #333;
}

.modal-content h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.modal-action {
    color: #667eea;
    font-size: 1.2em;
    margin-bottom: 25px;
    font-weight: 600;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Password Management Styles */
.passwords-section {
    margin-top: 30px;
}

.count-badge {
    background: #667eea;
    color: white;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    margin-left: 8px;
}

.passwords-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.password-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.password-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.password-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 10px;
}

.password-site h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.2em;
}

.password-url {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9em;
}

.password-url:hover {
    text-decoration: underline;
}

.password-actions {
    display: flex;
    gap: 8px;
}

.password-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.info-label {
    font-weight: 600;
    color: #666;
    min-width: 80px;
    font-size: 0.9em;
}

.info-value {
    color: #333;
    flex: 1;
    word-break: break-all;
}

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

.password-masked {
    font-family: monospace;
    letter-spacing: 2px;
    color: #666;
}

.btn-copy {
    background: #f0f0f0;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.2s;
}

.btn-copy:hover {
    background: #667eea;
    color: white;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.btn-toggle-password {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    padding: 5px;
}

/* Life Home Page Styles */
.life-home-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.life-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.life-module-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.life-module-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.life-module-card.task-module {
    border-top: 4px solid #667eea;
}

.life-module-card.password-module {
    border-top: 4px solid #28a745;
}

.life-module-card.dream-module {
    border-top: 4px solid #ffc107;
}

.life-module-card.investment-module {
    border-top: 4px solid #dc3545;
}

.module-icon {
    font-size: 3.5em;
    margin-bottom: 15px;
}

.life-module-card h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.module-desc {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.module-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.module-features li {
    padding: 8px 0;
    color: #555;
    font-size: 0.9em;
    border-bottom: 1px solid #f0f0f0;
}

.module-features li:last-child {
    border-bottom: none;
}

.module-btn {
    width: 100%;
    padding: 12px;
    font-size: 1em;
    margin-top: 15px;
}

.badge-coming-soon {
    background: #6c757d;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    display: inline-block;
    margin-top: 15px;
}

.today-overview {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.today-overview h2 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

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

.overview-stat {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.overview-stat .stat-number {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 5px;
    color: #667eea;
}

.overview-stat .stat-label {
    font-size: 0.95em;
    opacity: 0.9;
}

.recent-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.inspiration-section {
    margin: 40px 0;
    text-align: center;
}

.inspiration-quote {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #667eea;
}

.inspiration-quote p {
    font-size: 1.3em;
    color: #333;
    font-style: italic;
    margin-bottom: 10px;
}

.inspiration-quote footer {
    color: #667eea;
    font-weight: 600;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .quadrants {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .task-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .navbar-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 0.9em;
    }
}

/* Global Message Alert Styles */
.page-alert {
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-out;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

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

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

/* ==================== 学习管理样式 ==================== */

.life-module-card.study-module {
    border-top: 4px solid #17a2b8;
}

.study-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    color: #333;
    font-size: 2em;
    margin-bottom: 10px;
}

/* 标签页样式 */
.study-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    padding: 12px 24px;
    background: white;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: #667eea;
    background: #f8f9fa;
}

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

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.section-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.section-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.section-header h2 {
    color: #333;
    font-size: 1.5em;
}

/* 表单样式 */
.study-form {
    margin-top: 20px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
    font-size: 0.95em;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
}

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

/* 听写记录样式 */
.dictation-item {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 4px solid #ddd;
    background: #f8f9fa;
    transition: all 0.3s;
}

.dictation-item.correct {
    border-left-color: #28a745;
    background: #d4edda;
}

.dictation-item.wrong {
    border-left-color: #dc3545;
    background: #f8d7da;
}

.dictation-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dictation-word {
    font-size: 1.3em;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.dictation-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    font-size: 0.9em;
    color: #666;
}

/* 任务样式 */
.task-item {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    background: white;
    transition: all 0.3s;
}

.task-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.task-item.completed {
    opacity: 0.7;
    background: #f8f9fa;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.task-header h4 {
    color: #333;
    font-size: 1.2em;
    margin: 0;
}

.task-desc {
    color: #666;
    margin: 10px 0;
    font-size: 0.95em;
}

.task-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.9em;
    color: #666;
    margin: 10px 0;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-in_progress {
    background: #cce5ff;
    color: #004085;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

/* 统计卡片样式 */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 2.5em;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 2em;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 0.95em;
}

/* 难度统计样式 */
.difficulty-stat {
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.difficulty-level {
    font-size: 1.5em;
}

.difficulty-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.9em;
    color: #666;
}

/* 分类统计样式 */
.category-stat {
    padding: 12px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

/* 图表容器 */
#learning-chart {
    position: relative;
    height: 400px;
    margin-top: 20px;
}

/* Badge 样式补充 */
.badge-success {
    background: #28a745;
    color: white;
}

.badge-error {
    background: #dc3545;
    color: white;
}

.badge-info {
    background: #17a2b8;
    color: white;
}

.badge-priority-1 {
    background: #dc3545;
    color: white;
}

.badge-priority-2 {
    background: #fd7e14;
    color: white;
}

.badge-priority-3 {
    background: #ffc107;
    color: #333;
}

.badge-priority-4 {
    background: #28a745;
    color: white;
}

.badge-priority-5 {
    background: #6c757d;
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

.btn-info:hover {
    background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

@media (max-width: 768px) {
    .study-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .stats-overview {
        grid-template-columns: 1fr;
    }
    
    #learning-chart {
        height: 300px;
    }
}

/* 每周单词表样式 */
.weekly-word-item {
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    border-left: 4px solid #ffc107;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.weekly-word-item.learned {
    border-left-color: #28a745;
    background: linear-gradient(to right, #f8fff9, white);
    opacity: 0.9;
}

.weekly-word-item.pending {
    border-left-color: #ffc107;
    background: linear-gradient(to right, #fffef8, white);
}

.weekly-word-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.word-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.word-header h4 {
    color: #333;
    font-size: 1.4em;
    margin: 0;
    font-weight: 700;
}

.word-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.95em;
}

.word-details .pronunciation {
    color: #667eea;
    font-style: italic;
    font-weight: 500;
}

.word-details .meaning {
    color: #555;
    font-weight: 500;
}

.word-details .difficulty {
    color: #ff9800;
}

.word-details .example {
    color: #666;
    font-style: italic;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    margin: 10px 0;
    border-left: 3px solid #667eea;
}

.word-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85em;
}

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

.stat-badge {
    padding: 8px 16px;
    border-radius: 20px;
    background: #f0f0f0;
    color: #555;
    font-size: 0.9em;
}

.stat-badge.success {
    background: #d4edda;
    color: #155724;
}

.stat-badge.warning {
    background: #fff3cd;
    color: #856404;
}

.weekly-actions {
    margin: 20px 0;
    text-align: center;
}

/* 管理员页面样式 */
.admin-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

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

.admin-actions {
    margin: 20px 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.data-table thead {
    background: #f8f9fa;
}

.data-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
}

.data-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

.data-table .text-center {
    text-align: center;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-out;
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.5em;
}

.modal-header .close {
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-header .close:hover {
    color: #333;
}

#user-form, #role-form {
    padding: 25px;
}

.modal-footer {
    padding: 15px 25px;
    border-top: 2px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.help-text {
    display: block;
    margin-top: 5px;
    color: #999;
    font-size: 0.85em;
}

.permissions-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    padding: 10px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.3s;
}

.checkbox-label:hover {
    background: #f8f9fa;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}
