/* General Styling */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #F5F5F5;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Header */
header {
    position: relative;
    display: flex;
    justify-content: space-between; /* Space out logo and toggle button */
    align-items: center; /* Vertically center items */
    width: 100%;
    padding: 20px;
    background-color: #6ECEDA;
}

/* Logo */
.logo {
    height: 100px;
    content: url('WISH-WHITE.png');
    margin-left: 20px; /* Add padding to the left */
}

/* Dark mode toggle button */
.dark-mode-toggle {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: inherit; /* Inherits text color from header */
    margin-right: 20px; /* Add padding to the right */
}

/* Center the mood-logging section */
.mood-logging {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center horizontally */
    justify-content: center; /* Center vertically */
    text-align: center; /* Center text inside the section */
    height: 100vh; /* Make the section take up the full viewport height */
    padding: 20px; /* Add some padding */
    box-sizing: border-box; /* Ensure padding is included in height */
}

/* Responsive Layout */
@media (max-width: 1024px) {
    .chart-container canvas {
        max-width: 100%;
        
    }
}

@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
        padding: 10px;
    }
    .auth-content {
        width: 90%;
        padding: 20px;
    }
    .chart-container canvas {
        max-width: 85%;
    }
    .emoji-picker {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 15px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 40px;
    }
    .chart-toggle {
        flex-direction: column;
        align-items: center;
    }
    .chart-toggle button {
        width: 80%;
        padding: 8px;
    }
    .emoji-picker {
        grid-template-columns: repeat(3, 1fr);
    }
    .chart-container canvas {
        max-width: 90%;
    }
}

@media (max-width: 360px) {
    .logo {
        height: 35px;
    }
    .chart-container canvas {
        max-width: 95%;
    }
    .emoji-picker {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .emoji-picker button {
        font-size: 3rem;
    }
}

/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    padding: 20px;
    border-bottom: 2px solid #ddd;
}

.chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    width: 100%;
}

.chart-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.chart-toggle button {
    background: #6ECEDA;
    border: none;
    padding: 10px 20px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50px;
    transition: 0.3s;
    width: 100%;
    font-size: 14px;
}

.chart-toggle button:hover {
    background: #4CAF50;
}

.chart-toggle button.active {
    background: #4CAF50;
}

.chart-container canvas {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Emoji Styling */
.emoji-picker {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 600px;
}

.emoji-picker button {
    font-size: 4.5rem;
    border: none;
    background: white;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(110, 206, 218, 0.3);
}

.emoji-picker button:hover, .emoji-picker button:focus {
    transform: scale(1.2);
    box-shadow: 0 4px 15px rgba(110, 206, 218, 0.8);
    border-radius: 10px;
}

.logout-btn {
    background: #E91E63;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.3s;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
}

.logout-btn:hover {
    background: #D81B60;
}

.chart-wrapper {
    width: 100%;
    height: auto;
    position: relative;
}

.chart-wrapper canvas {
    width: 100% !important;
    height: auto !important;
}

.chart-toggle button.active{
    background-color: #4CAF50;
    color: white;
}

.time-period-toggle button.active {
    background-color: #ffca63;
    color: white;
}

.time-period-toggle button{
    background: #efa6a6;
    border: none;
    padding: 10px 20px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50px;
    transition: 0.3s;
    width: 100%;
    font-size: 14px;
    margin-top: 15px;
}

.time-period-toggle button:hover {
    background: #ffca63;
}

.time-period-toggle{
    display: flex;
    gap: 15px;
}

body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

body.dark-mode header {
    background-color: #1e1e1e;
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
}

body.dark-mode .emoji-picker button {
    background-color: #333333;
    color: #ffffff;
}

body.dark-mode .emoji-picker button:hover {
    background-color: #555555;
}

body.dark-mode .card {
    background-color: #1e1e1e;
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
}
/* Light mode (default) */
.analytics-container {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    margin: 20px 0;
}

.insight-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.prediction-timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.prediction-item {
    text-align: center;
    background: #f0f0f0;
    padding: 5px;
    border-radius: 5px;
}

.suggestions-panel {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.suggestions-panel ul {
    list-style-type: none;
    padding-left: 0;
}

.suggestions-panel li {
    margin-bottom: 10px;
    padding: 10px;
    background: #f0f0f0;
    border-radius: 5px;
}

/* Dark mode */
body.dark-mode .analytics-container {
    background: #1e1e1e;
    color: #ffffff;
}

body.dark-mode .insight-cards {
    background: transparent; /* Inherits from analytics-container */
}

body.dark-mode .card {
    background: #2d2d2d;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
}

body.dark-mode .prediction-timeline {
    background: transparent; /* Inherits from analytics-container */
}

body.dark-mode .prediction-item {
    background: #333333;
    color: #ffffff;
}

body.dark-mode .suggestions-panel {
    background: #2d2d2d;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
}

body.dark-mode .suggestions-panel ul {
    background: transparent; /* Inherits from suggestions-panel */
}

body.dark-mode .suggestions-panel li {
    background: #333333;
    color: #ffffff;
}


