/* styles.css */
:root {
    --primary: #E65100;
    --secondary: #FF9800;
    --background: #121212;
    --surface: #212121;
    --accent: #B07A33;
    --text-primary: #FFFFFF;
    --text-secondary: #B3B3B3;
}

/* Common Body Styles */
body {
    font-family: 'Circular Std', Arial, sans-serif;
    background: #121212;
    color: #fff;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Common Container Styles */
.container {
    width: 100%;
    max-width: 100%;
    margin: auto;
    padding: 70px 16px 16px;
    background-color: #1a1a1a;
    color: #fff;
    min-height: 100vh;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .container {
        max-width: 800px;
        padding: 20px;
    }
}

.tabs {
    display: flex;
    justify-content: space-around;
    /* Space out the buttons */
    margin-bottom: 20px;
    /* Space below the tabs */
}

.tab-button {
    background-color: transparent;
    /* Transparent background for unselected tabs */
    color: white;
    /* White text */
    border: 2px solid transparent;
    /* Transparent border */
    padding: 10px 15px;
    /* Padding for the buttons */
    cursor: pointer;
    border-radius: 5px;
    /* Rounded corners */
    transition: background-color 0.3s, border 0.3s;
    /* Smooth transition */
}

.tab-button.active {
    background-color: white;
    /* White background for active tab */
    color: black;
    /* Black text for active tab */
    border: 2px solid #6a0dad;
    /* Border color for active tab */
}

.tab-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    /* Light hover effect for unselected tabs */
}

/* Login Page Specific Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    /* Full viewport height for login */
    background-image: url('../images/dj-background.jpg');
    /* Background image */
    background-size: cover;
    /* Cover the entire background */
    background-position: center;
    /* Center the background image */
}

.login-form {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    width: 400px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

h1 {
    margin-bottom: 20px;
    font-size: 24px;
    /* Font size for the title */
}

/* Input Fields */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="date"],
input[type="time"] {
    width: 100%;
    padding: 14px;
    margin: 8px 0;
    border: none;
    border-radius: 8px;
    background-color: #333;
    color: #fff;
    font-size: 16px;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

/* Improve touch target size */
button,
.button {
    min-height: 48px;
    padding: 14px 20px;
    font-size: 16px;
    border-radius: 8px;
    touch-action: manipulation;
}

/* Fix date/time inputs on mobile */
input[type="date"],
input[type="time"] {
    min-height: 48px;
}

/* Buttons */
button {
    background-color: #6a5acd;
    /* Purple color */
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    margin: 10px 0;
    /* Margin for spacing */
    width: 100%;
    /* Full width */
}

/*
button:hover {
    /background-color: #5a4bcf;
    /* Darker purple on hover */
}

*/ .form-group {
    margin: 20px 0;
}

.form-group input {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
}

.login-link {
    margin-top: 15px;
    color: #fff;
}

.login-link a {
    color: #6a5acd;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Mobile-first styles */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px;
        /* Prevent zoom on iOS */
        padding: 12px 8px;
    }

    h1 {
        font-size: 24px;
        margin: 15px 0;
    }

    button {
        padding: 12px 20px;
        margin: 8px 0;
    }
}

/* Landing Page Styles */
.landing-content {
    text-align: center;
    z-index: 2;
    position: relative;
    padding: 40px 15px;
}

.landing-content h1 {
    font-size: 3.5em;
    margin-bottom: 40px;
    background: linear-gradient(45deg, #6a5acd, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.role-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 400px;
    margin: 40px auto;
}

.role-button {
    padding: 20px;
    font-size: 1.2em;
    text-decoration: none;
    color: white;
    background: linear-gradient(45deg, rgba(106, 90, 205, 0.9), rgba(138, 43, 226, 0.9));
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(5px);
}

.role-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(106, 90, 205, 0.5);
}

.role-button.dj {
    background-color: rgba(106, 90, 205, 0.8);
}

.role-button.attendee {
    background-color: rgba(75, 0, 130, 0.8);
}

/* Dashboard Specific Styles */
.dashboard-container {
    padding: 20px;
    /* Padding for dashboard */
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dashboard-header button {
    max-width: 150px;
}

.event {
    background-color: #222;
    padding: 16px;
    margin: 12px 0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.event-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

@media (min-width: 768px) {
    .event-buttons {
        display: flex;
        justify-content: flex-start;
    }
}

.event h2 {
    margin: 0 0 10px;
}

.event p {
    margin: 5px 0;
}

.manage-queue,
.view-qr {
    background-color: #6a5acd;
    /* Purple color */
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    margin-right: 5px;
}

.manage-queue:hover,
.share-qr:hover {
    background-color: #5a4bcf;
    /* Darker purple on hover */
}

.event-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.event-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.qr-code {
    background: white;
    padding: 5px;
    border-radius: 5px;
}

.share-qr {
    background-color: #6a5acd;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
}

/* Event Creation Page Styles */
.event-form {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 600px;
    margin: 20px auto;
}

.event-form .form-group {
    margin-bottom: 20px;
}

.event-form label {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 500;
}

.event-form input[type="text"],
.event-form input[type="date"],
.event-form input[type="time"] {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.event-form input[type="date"],
.event-form input[type="time"] {
    color-scheme: dark;
}

.event-form input:focus,
.event-form textarea:focus {
    outline: none;
    border-color: #6a5acd;
    box-shadow: 0 0 0 2px rgba(106, 90, 205, 0.2);
}

.event-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.event-form button[type="submit"] {
    background: linear-gradient(45deg, #6a5acd, #8a2be2);
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    width: 100%;
    transition: transform 0.2s ease;
}

.event-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 90, 205, 0.4);
}

/* Confirmation Page Styles */
.confirmation-container {
    text-align: center;
    /* Center text */
    padding: 20px;
}

.confirmation-message {
    font-size: 20px;
    /* Larger font for confirmation message */
}

/* Attendee Join Page Styles */
.attendee-join-container {
    padding: 20px;
    /* Padding for attendee join */
}

.attendee-join-form {
    background-color: rgba(0, 0, 0, 0.8);
    /* Semi-transparent background */
    padding: 20px;
    border-radius: 10px;
}

/* Song Request Page Styles */
.song-request-container {
    padding: 20px;
    /* Padding for song request */
}

.song-request-form {
    background-color: rgba(0, 0, 0, 0.8);
    /* Semi-transparent background */
    padding: 20px;
    border-radius: 10px;
}

/* Event Card Styles */
.event-card {
    background: #181818;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    transition: background-color 0.3s ease;
    text-align: left;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.event-content {
    flex: 1;
}

.event-title {
    margin: 0;
    font-size: 16px;
    color: #fff;
    cursor: pointer;
}

.event-title:hover {
    text-decoration: underline;
}

.event-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    position: relative;
}

.icon-button {
    background: transparent;
    border: none;
    color: #b3b3b3;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.icon-button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.qr-wrapper {
    position: relative;
}

.qr-preview {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    display: none;
    background: white;
    padding: 4px;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.qr-canvas {
    width: 100px;
    height: 100px;
}

.share-qr:hover+.qr-preview,
.qr-preview:hover {
    display: block;
}

.event-content:hover .event-title {
    text-decoration: underline;
}

.event-meta {
    margin-top: 4px;
}

.meta-text {
    color: #b3b3b3;
    font-size: 14px;
}


.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.event-header h3 {
    margin: 0;
    font-size: 1.4em;
    color: #fff;
}

.event-date {
    color: #a0a0a0;
    font-size: 0.9em;
}

.event-location {
    color: #888;
    margin-bottom: 15px;
}

.event-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5em;
    color: #4b0082;
    font-weight: bold;
}

.stat-label {
    color: #888;
    font-size: 0.9em;
}

.event-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: #4b0082;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.action-btn:hover {
    background: #5c0099;
}

/* Song Queue Styles */
.queue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 24px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .5));
}

.container {
    max-width: 1955px;
    margin: 0 auto;
    background: #121212;
    min-height: 100vh;
}

.song-queue {
    padding: 0 24px;
}

.song-item {
    padding: 16px;
    border-radius: 4px;
    display: grid;
    grid-template-columns: 4fr 2fr 1fr;
    align-items: center;
    color: #b3b3b3;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.song-item:hover {
    background-color: rgba(255, 255, 255, .1);
}

.tabs {
    margin: 0 24px 24px;
    gap: 16px;
}

.tab-button {
    background: #282828;
    color: #fff;
    border-radius: 32px;
    padding: 8px 16px;
    font-weight: 700;
    border: none;
}

.tab-button.active {
    background: #1db954;
    color: #000;
}

.back-to-event {
    padding: 8px 15px;
    border: none;
    border-radius: 8px;
    background: #4b0082;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: #333;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
}

.tab-button.active {
    background: #4b0082;
}

.song-queue {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    margin-top: 20px;
}

.queue-title {
    padding: 20px;
    margin-bottom: 30px;
}

.queue-section {
    margin-bottom: 40px;
    padding: 0 20px;
}

.queue-section h2 {
    color: #b3b3b3;
    font-size: 18px;
    margin-bottom: 15px;
}

.song-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.song-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #282828;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.song-item:hover {
    background: #333;
}

.song-info {
    flex-grow: 1;
}

.song-title {
    color: #fff;
    font-size: 16px;
    margin-bottom: 4px;
}

.song-artist {
    color: #b3b3b3;
    font-size: 14px;
}

.song-actions {
    display: flex;
    gap: 8px;
}

.action-button {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.action-button.played:hover {
    background: #1db954;
}

.action-button.ignored:hover {
    background: #ff4444;
}

.action-button.undo:hover {
    background: #666;
}

.song-item:hover {
    background-color: #282828;
}

.song-title {
    color: #fff;
    font-size: 16px;
    margin-bottom: 4px;
}

.song-artist {
    color: #b3b3b3;
    font-size: 14px;
}

.status-button {
    background: #1db954;
    color: #000;
    border-radius: 32px;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.status-button:hover {
    transform: scale(1.05);
}

.song-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.event-name-link {
    text-decoration: none;
    color: inherit;
}

.event-name-link:hover {
    opacity: 0.8;
}


.song-info {
    flex: 1;
}

.song-title {
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}

.song-artist {
    color: #888;
    font-size: 0.9em;
}

.song-actions {
    display: flex;
    gap: 10px;
}

.status-button {
    padding: 8px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.status-buttons {
    display: flex;
    gap: 5px;
    /* Space between status buttons */
}

/* Options and Links */
.options {
    display: flex;
    justify-content: space-between;
    /* Space between remember me and forgot password */
    align-items: center;
    /* Center vertically */
    margin: 10px 0;
    /* Margin for spacing */
}

.register {
    margin-top: 10px;
    /* Space above the register link */
    font-size: 14px;
    /* Font size for the register text */
}

a {
    color: #6a5acd;
    /* Link color */
    text-decoration: none;
    /* Remove underline */
}

a:hover {
    text-decoration: underline;
    /* Underline on hover */
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px;
    margin: 15px 0;
    border: 1px solid #dadce0;
    border-radius: 5px;
    background-color: white;
    color: #3c4043;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.google-btn:hover {
    background-color: #f8f9fa;
}

.google-btn img {
    width: 18px;
    height: 18px;
    margin-right: 10px;
}

.google-btn span {
    font-size: 14px;
}