* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f0f2f5;
    color: #333;
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

/* Loader */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3a86ff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Dashboard Styles */
.dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    background: linear-gradient(135deg, #3a86ff 0%, #5e60ce 100%);
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.grid-section {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.grid-section h2 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
}

.grid-section h2 i {
    margin-right: 10px;
    color: #3a86ff;
}

.shortcuts-section {
    grid-column: span 2;
}

.shortcuts {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.shortcut-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    width: 250px;
    text-align: center;
    margin: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.shortcut-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.shortcut-card i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #3a86ff;
}

.shortcut-card p {
    margin-top: 10px;
    color: #666;
    font-size: 14px;
}

.activity-section {
    grid-column: span 1;
}

.activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f2f5;
}

.activity-icon {
    background-color: #e6f0ff;
    color: #3a86ff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
}

.activity-details h4 {
    margin-bottom: 5px;
}

.activity-details p {
    color: #666;
    font-size: 14px;
}

.activity-time {
    font-size: 12px;
    color: #999;
}

.tools-section {
    grid-column: span 1;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.tool-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: background-color 0.3s;
    text-decoration: none;
    color: #333;
}

.tool-card:hover {
    background-color: #e6f0ff;
}

.tool-card i {
    font-size: 24px;
    margin-bottom: 10px;
    color: #3a86ff;
}

.notes-section {
    grid-column: span 2;
}

.notes-container {
    display: flex;
    flex-direction: column;
}

#quick-notes {
    width: 100%;
    height: 150px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: none;
    margin-bottom: 15px;
    font-size: 16px;
}

#quick-notes:focus {
    outline: none;
    border-color: #3a86ff;
}

#save-notes-btn {
    align-self: flex-end;
    background-color: #3a86ff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#save-notes-btn:hover {
    background-color: #2a75e0;
}

.user-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
}

.user-info i {
    margin-right: 10px;
    color: #3a86ff;
    font-size: 20px;
}

.logout-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.logout-btn:hover {
    background-color: #c0392b;
}

footer {
    text-align: center;
    padding: 20px 0;
    color: #666;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Login Page Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #3a86ff 0%, #5e60ce 100%);
    padding: 20px;
}

.login-card {
    background-color: white;
    border-radius: 10px;
    padding: 40px;
    width: 400px;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #3a86ff;
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
    font-size: 18px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: #3a86ff;
    outline: none;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background-color: #3a86ff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-btn:hover {
    background-color: #2a75e0;
}

.error-message {
    color: #e74c3c;
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
    min-height: 20px;
}

/* Make the dashboard responsive */
@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .shortcuts-section,
    .activity-section,
    .tools-section,
    .notes-section {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .shortcuts {
        flex-direction: column;
        align-items: center;
    }
    
    .shortcut-card {
        width: 100%;
        max-width: 300px;
        margin-bottom: 20px;
    }
    
    .login-card {
        width: 90%;
        padding: 30px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
}