/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

/* === LOGIN STYLES === */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.login-header i {
    font-size: 3em;
    color: #667eea;
    margin-bottom: 10px;
    display: block;
}

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

.login-header p {
    color: #666;
    font-size: 1.1em;
}

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

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

.input-wrapper i {
    position: absolute;
    left: 15px;
    color: #667eea;
    z-index: 1;
}

.input-wrapper input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.error-message {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid rgba(231, 76, 60, 0.2);
    font-size: 14px;
}

.login-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.demo-credentials {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.demo-credentials code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #667eea;
    font-weight: bold;
}

/* === DASHBOARD STYLES === */
.dashboard {
    min-height: 100vh;
    background: #f5f7fa;
}

.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-left i {
    font-size: 2em;
}

.header-left h1 {
    font-size: 1.8em;
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1em;
}

.user-info i {
    font-size: 1.5em;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.dashboard-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    display: grid;
    gap: 30px;
}

/* Cards */
.welcome-card,
.download-card,
.activity-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.welcome-section h2 {
    font-size: 2.2em;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.welcome-section p {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 30px;
}

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

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fc 0%, #f1f3f8 100%);
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.stat-item i {
    font-size: 2em;
    color: #667eea;
}

.stat-number {
    display: block;
    font-size: 1.8em;
    font-weight: bold;
    color: #333;
}

.stat-label {
    display: block;
    color: #666;
    font-size: 0.9em;
}

/* Download Section */
.card-header {
    margin-bottom: 30px;
}

.card-header h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h3 i {
    color: #667eea;
}

.card-header p {
    color: #666;
    font-size: 1.1em;
}

.download-options {
    display: grid;
    gap: 20px;
}

.download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    background: #f8f9fc;
    border-radius: 12px;
    border: 2px solid #e1e5e9;
    transition: all 0.3s ease;
}

.download-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.1);
}

.download-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.download-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5em;
}

.download-details h4 {
    font-size: 1.3em;
    margin-bottom: 8px;
    color: #333;
}

.download-details p {
    color: #666;
    margin-bottom: 10px;
}

.file-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9em;
    color: #888;
}

.file-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.download-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.download-btn.secondary {
    background: #95a5a6;
    cursor: not-allowed;
}

.download-btn.secondary:hover {
    transform: none;
    box-shadow: none;
}

/* Activity Section */
.activity-card h3 {
    font-size: 1.8em;
    margin-bottom: 25px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.activity-card h3 i {
    color: #667eea;
}

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

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fc;
    border-radius: 12px;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1em;
}

.activity-icon.success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.activity-icon.info {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.activity-content p {
    margin-bottom: 5px;
    color: #333;
}

.activity-time {
    color: #888;
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .dashboard-main {
        padding: 20px 15px;
    }

    .welcome-card,
    .download-card,
    .activity-card {
        padding: 20px;
    }

    .download-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .download-info {
        width: 100%;
    }

    .file-meta {
        flex-direction: column;
        gap: 8px;
    }

    .stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }

    .download-item {
        padding: 20px;
    }

    .download-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}