/* styles.css - Arvo: Your Journey to Growth */
:root {
    --primary-blue: #6ECBF5;
    --peach: #FF9A8B;
    --light-gray: #f5f5f5;
    --dark-gray: #333;
    --success: #4CAF50;
    --warning: #FF9800;
    --danger: #F44336;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--light-gray);
    color: var(--dark-gray);
}

/* ===== LOGIN MODAL STYLES ===== */
.modal {
    display: flex;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue), var(--peach));
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    animation: modalSlideIn 0.5s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: 700;
}

.modal-header p {
    color: var(--dark-gray);
    font-size: 1rem;
    opacity: 0.8;
}

/* Auth Form Styles */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-form label {
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 0.95rem;
}

.auth-form input {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(110, 203, 245, 0.1);
}

.auth-form input::placeholder {
    color: #aaa;
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--dark-gray);
}

.auth-link a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-link a:hover {
    color: var(--peach);
    text-decoration: underline;
}

.hidden {
    display: none !important;
}

/* Button Styles untuk Auth */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--peach));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(110, 203, 245, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(110, 203, 245, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-full {
    width: 100%;
    margin-top: 0.5rem;
}

/* Main Content */
#mainContent {
    display: none;
}

#mainContent:not(.hidden) {
    display: block;
}

/* Responsive Design untuk Modal */
@media (max-width: 480px) {
    .modal-content {
        padding: 2rem 1.5rem;
        margin: 10px;
    }
    
    .modal-header h2 {
        font-size: 1.75rem;
    }
    
    .auth-form input {
        padding: 0.875rem;
    }
}

/* Flexbox untuk navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--peach));
    color: white;
}

.nav-brand h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255,255,255,0.2);
    color: #FFEAA7;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Page Management */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Container & Header */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--dark-gray);
    font-size: 1.1rem;
}

/* Dashboard Styles */
.welcome-section {
    margin-bottom: 2rem;
}

.welcome-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-blue), var(--peach));
    color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.welcome-text h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.welcome-text p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-info span:first-child {
    font-weight: 600;
    font-size: 1.1rem;
}

.user-info span:last-child {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    display: block;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* Grid untuk dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Card Styles */
.card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.card-header h3 {
    color: var(--dark-gray);
    font-size: 1.25rem;
    margin: 0;
}

.card-icon {
    font-size: 1.5rem;
    color: var(--primary-blue);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(110, 203, 245, 0.1);
    border-radius: 10px;
}

.card-content {
    color: var(--dark-gray);
}

/* Activity Card */
.activity-card .today-date {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.activities-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 10px;
    border-left: 4px solid var(--primary-blue);
    transition: transform 0.2s ease;
}

.activity-item:hover {
    transform: translateX(5px);
}

.activity-time {
    font-weight: 600;
    color: var(--primary-blue);
    min-width: 60px;
}

.activity-details {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.activity-type {
    font-size: 0.8rem;
    color: #666;
}

.no-activities {
    text-align: center;
    padding: 2rem 1rem;
    color: #666;
}

.no-activities i {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 10px;
    margin: 1rem 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--peach));
    border-radius: 10px;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-text {
    display: block;
    text-align: center;
    margin-top: 0.5rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.progress-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.progress-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.progress-item:last-child {
    border-bottom: none;
}

/* Motivation Card */
.quote-container {
    text-align: center;
    padding: 1rem 0;
}

#daily-quote {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.quote-author {
    font-weight: 600;
    color: var(--primary-blue);
}

/* Mini Calendar */
.mini-week-calendar {
    background: white;
    border-radius: 10px;
    padding: 1rem;
}

.week-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
}

.week-day {
    text-align: center;
    padding: 0.5rem 0.25rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.week-day:hover {
    background: #e3f2fd;
}

.week-day.today {
    background: var(--primary-blue);
    color: white;
    font-weight: 600;
}

.day-name {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.day-date {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
}

.calendar-card .card-header {
    justify-content: space-between;
}

.view-all {
    font-size: 0.9rem;
    color: var(--primary-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.view-all:hover {
    gap: 0.75rem;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Form Styles */
.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--dark-gray);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--peach));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: white;
}

.btn-full {
    width: 100%;
    padding: 1rem;
    font-size: 1.05rem;
    margin-top: 0.5rem;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Schedule Styles */
.schedule-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.schedule-list {
    max-height: 400px;
    overflow-y: auto;
}

.schedule-item {
    background: white;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-blue);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.schedule-item[data-type="kuliah"] {
    border-left-color: #4CAF50;
}

.schedule-item[data-type="organisasi"] {
    border-left-color: #FF9800;
}

.schedule-item[data-type="tugas"] {
    border-left-color: #F44336;
}

.schedule-item[data-type="pribadi"] {
    border-left-color: #9C27B0;
}

.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.schedule-date {
    color: #666;
    font-size: 0.9rem;
}

.schedule-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f0f0f0;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.schedule-description {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.schedule-actions {
    display: flex;
    gap: 0.5rem;
}

/* Notes Styles */
.search-container {
    margin-bottom: 1.5rem;
}

.search-box {
    position: relative;
    margin-bottom: 0.75rem;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    z-index: 1;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.search-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #6c757d;
}

.notes-history {
    max-height: 500px;
    overflow-y: auto;
}

.note-item {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-blue);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.note-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #e3f2fd;
    color: var(--primary-blue);
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.note-date {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.note-content {
    color: #333;
    line-height: 1.6;
    margin-bottom: 1rem;
    white-space: pre-line;
}

.note-actions {
    display: flex;
    gap: 0.5rem;
}

/* Profile Styles */
.settings-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.setting-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.setting-item h4 {
    color: var(--dark-gray);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.setting-item h4 i {
    color: var(--primary-blue);
}

.privacy-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 400px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease-out;
}

.notification.success {
    background: var(--success);
}

.notification.error {
    background: var(--danger);
}

.notification.info {
    background: var(--primary-blue);
}

.notification button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .welcome-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .week-days {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .container {
        padding: 1rem;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}