/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}
@media screen and (max-width: 768px) {
    .home-container {
        flex-direction: column;
        align-items: center;
    }

    .home-column {
        width: 100%;
        max-width: 500px;
    }

    #chart-container {
        width: 90%;
    }
    
}

.counter {
    font-size: 24px;
    font-weight: bold;
    font-style: italic;
}
  
.plus {
    opacity: 0;
    transform: translateX(5px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
  
.counter .plus.visible {
    opacity: 1;
    transform: translateX(0);
}
  
  
.home-container {
    display: flex;
    justify-content: space-between;
    width: 90%;
    margin: 40px auto;
    min-height: 400px;
    gap: 30px;
}

.home-left {
    flex: 7;
    background-color: #1b1b1b;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.home-left h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #fff;
}

.home-right {
    flex: 3;
    background: linear-gradient(to bottom right, #1DB954, #1aa34a);
    border-radius: 20px;
    padding: 30px 20px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    gap: 20px;
}

.stat-card {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.05);
}

.stat-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1px;
}

.stat-card p {
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
}

#userPassword {
    width: 100%;
    max-width: 350px;
    padding: 12px 20px;
    margin: 15px auto;
    border: 2px solid #1DB954;
    border-radius: 30px;
    font-size: 16px;
    background-color: #121212;
    color: #fff;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

#userPassword:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(29, 185, 84, 0.5);
}

#passButton {
    background: linear-gradient(135deg, #1DB954, #1ed760);
    border: none;
    border-radius: 30px;
    padding: 12px 25px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    margin-top: 10px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

#passButton:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #1ed760, #2fe67b);
}

#userPassword::placeholder {
    color: #ccc;
    font-style: italic;
    transition: opacity 0.3s ease;
}

#userPassword:focus::placeholder {
    opacity: 0.3;
}


body {
    background: linear-gradient(to left, #121212, #282828);
    font-family: 'Roboto', sans-serif;
    color: #fff;
    text-align: center;
    line-height: 1.6;
}

/* Header Styles */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #1DB954;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

h1{
    color: white;
    font-family: 'Share Tech Mono', sans-serif;
    font-weight: 900;    
    font-style: italic;
    font-size: 30px; /* Slightly bigger */
    letter-spacing: 1px; /* More spacing for readability */
    text-transform: uppercase; /* Optional for a stronger presence */
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2); /* Soft glow */
    margin: 0;
    flex-shrink: 0;
}

h2, h3, p, a {
    color: white;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Button Styles */
button {
    background-color: #1DB954;
    color: white;
    padding: 12px 25px;
    margin: 10px;
    border: none;
    cursor: pointer;
    border-radius: 30px;
    font-size: 16px;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #1ed760;
    transform: translateY(-2px);
}

/* Navigation Styles */
nav {
    position: sticky;
    top: 0;
    /*background-color: #1b1b1b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);*/
    z-index: 10;
    padding: 12px 0px;
    flex-grow: 1;
    text-align: center;
}

nav ul {
    justify-content: center;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

nav ul li {
    display: inline;
}

nav ul li a {
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 20px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #b1dcc1;
}

#left-container {
    display: flex;
    align-items: center;
    gap: 70px; /* Reduce gap between h1 and nav */
    flex-grow: 0;
}

/* Table Styles */
table {
    border-collapse: collapse;
    margin: 20px;
    width: 90%;
    max-width: 1200px;
    margin: auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

th {
    background-color: #1DB954;
    color: white;
    padding: 15px;
    text-align: left;
}

td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #444;
}

tr {
    background-color: #333;
}

tr:nth-child(even) {
    background-color: #2a2a2a;
}

tr:hover {
    background-color: #444;
}

/* Form Elements */
input[type="datetime-local"] {
    appearance: none;
    border: 1px solid #444;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 16px;
    background-color: #121212;
    color: #fff;
    width: 250px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="datetime-local"]:focus {
    border-color: #1DB954;
    box-shadow: 0 0 5px rgba(29, 185, 84, 0.6);
    outline: none;
}

/* Forms */
.forms {
    margin: 30px auto;
    padding: 20px;
    max-width: 400px;
    /*background-color: #181818;*/
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Report Views */
.report-view {
    display: none;
}

.report-view.active {
    display: block;
}

/* Dashboard Styles */
.dashboard_style {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 90%;
    margin: 20px auto;
}

.dashboard_column {
    width: 45%;
}

.dashboard_header {
    background-color: #1DB954;
    padding: 15px;
    border-radius: 25px;
    color: white;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
}

.dashboard_content {
    padding: 20px;
    background-color: #2d2d2d;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Artist/Track Info */
.artist-info, .track-info {
    margin-bottom: 15px;
    padding: 15px;
    background-color: #333;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 20px;
    align-items: center;
}

.artist-info img {
    width: 100px;
    height: auto;
    border-radius: 50%;
    background-color: #f0f0f0;
}

.artist-details {
    text-align: left;
    flex: 1;
}

.artist-details h3 {
    margin: 0;
    font-size: 1.5em;
}

.artist-details p {
    margin: 5px 0;
}

.artist-details a {
    color: #1DB954;
    text-decoration: none;
    transition: text-decoration 0.3s ease;
}

.artist-details a:hover {
    text-decoration: underline;
}

.h2_margin {
    padding: 30px 0;
}

#login-button{
    background-color: #1cae4f;
    color: white;
    padding: 12px 30px;
    margin: 2px;
    border: none;
    cursor: pointer;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    font-size: 16px;
    transition: all 0.3s ease;
}

#login-button:hover {
    background-color: #1ed760;
    transform: translateY(-2px);
}


#auth-container {
    flex-shrink: 0;
    margin: 0;
    font-size: 14px;
    padding: 5px 10px; /* Adjust padding if needed */
    display: flex;
    align-items: center; 
}

#chart-container {
    width: 50%;  /* Adjust this to make it smaller */
    max-width: 800px; /* Prevent it from growing too large */
    height: auto; /* Keeps aspect ratio */
    height: auto; /* Maintain aspect ratio */
    display: flex;
    justify-content: center;
    margin: auto;
}
  
#listeningChart {
    width: 100%; /* Make it responsive within the container */
    height: 100%;
}


/*NOW PLAYING CSS SECTION*/

  
  #now-playing {
    display: flex;
    align-items: center;
    background: #1db954;
    padding: 1rem;
    border-radius: 12px;
    gap: 1rem;
    max-width: 500px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
  }
  
  #now-playing img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
  }
  
  .track-info {
    flex: 1;
  }
  
  #progress-bar {
    margin-top: 0.5rem;
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    overflow: hidden;
  }
  
  #progress {
    height: 100%;
    width: 0%;
    background: white;
    transition: width 0.3s linear;
  }
  
  #user-info {
  position: absolute;
  top: 10px;
  right: 10px;
  align-items: center;
  gap: 8px;
  display: flex;
  background: #1aa049;
  padding: 6px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

#user-image {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}