* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: #ffffff;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.dashboard {
    width: 100vw;
    height: 100vh;
    position: relative;
    border: 1px solid #000;
    margin: 0;
    padding: 0;
}

.banner-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    border-bottom: 1px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    color: #999;
    font-size: 0.8rem;
    z-index: 5;
}

.banner-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-btn {
    background: white;
    border: 1px solid #4ECDC4;
    color: #4ECDC4;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.2s;
    margin-right: 5px;
}

.auth-btn:hover {
    background: #4ECDC4;
    color: white;
}

#userEmail {
    color: #4ECDC4;
    font-weight: 500;
    font-size: 0.8rem;
    margin-right: 10px;
}

.central-screen {
    position: absolute;
    top: 42%; /* Changed from 50% to 45% - raises the whole screen */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 324px; /* Keep the new shorter height */
    border: 1px solid #000;
    background: #fff;
    z-index: 2;
    overflow: hidden;
}

.screen-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    transition: all 0.2s;
    overflow-y: auto;
}
/* Top Navigation */
.top-nav {
    position: absolute;
    top: 150px; /* Increased from 140px to 160px - even closer to preview screen */
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 60px;
    display: flex;
    justify-content: space-between;
    gap: 6px;
    z-index: 10;
}

.nav-item {
    flex: 1;
    background: white;
    border: 1px solid #000;
    border-radius: 10px; /* Slightly smaller radius */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 4px 0; /* Smaller padding */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.nav-item i {
    font-size: 1.1rem; /* Smaller icons */
    color: #4ECDC4;
    margin-bottom: 2px;
}

.nav-item span {
    font-size: 0.5rem; /* Smaller text */
    font-weight: 500;
    color: #333;
    text-align: center;
    line-height: 1.2;
}
.hover-message {
    font-size: 1.5rem;
    color: #4ECDC4;
    margin-bottom: 15px;
    font-weight: bold;
}

.hover-instruction {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.hover-url {
    font-size: 0.7rem;
    color: #667eea;
    word-break: break-all;
    max-width: 90%;
    padding: 8px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    margin-top: 10px;
}

.event-details {
    text-align: left;
    width: 100%;
    font-size: 0.8rem;
}

.event-details p {
    margin: 5px 0;
    padding: 3px 0;
    border-bottom: 1px dashed #eee;
}

.event-details strong {
    color: #4ECDC4;
    min-width: 60px;
    display: inline-block;
}

.price-section {
    margin-top: 10px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 5px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    padding: 2px 0;
}

.diagonal-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

svg {
    width: 100%;
    height: 100%;
}

.left-area {
    position: absolute;
    left: 30px;
    top: calc(45% - 180px); /* Moved up slightly to match right area */
    width: 230px; /* Slightly wider to match right area */
    max-height: 500px; /* Much taller to fit all content */
    padding: 10px;
    overflow-y: auto; /* Keep auto so you can scroll if needed */
    z-index: 3;
    text-align: left;
}

/* Make sure the reset button has some space */
.reset-btn {
    background: white;
    border: 1px solid #000;
    padding: 3px 8px;
    font-size: 0.6rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: auto;
    transition: all 0.2s;
    margin-top: 15px; /* Increased from 5px to 15px */
    margin-bottom: 10px; /* Add some bottom margin */
}

/* Add some spacing between sections */
.left-area .area-label {
    font-size: 0.6rem;
    color: #999;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    display: block;
}

.left-area .area-label:not(:first-child) {
    margin-top: 20px; /* Add space between SOCIAL, CHANNELS, WEBSITES */
}

.right-area {
    position: absolute;
    right: 30px;
    top: calc(45% - 180px); /* Moved up slightly to give more room */
    width: 230px; /* Slightly wider */
    max-height: 500px; /* Much taller */
    padding: 10px;
    overflow-y: visible; /* Change from auto to visible */
    z-index: 3;
    text-align: right;
}

/* Make the panels container taller */
.panels-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: none; /* Remove max-height */
    height: auto;
    overflow-y: visible;
}

/* Ensure expanded panels don't get cut off */
.panels-container.expanded-mode {
    height: auto;
    max-height: none;
}

.admin-panel.expanded-panel .panel-content {
    max-height: none;
    overflow-y: visible;
}

/* Make the event form content visible without scrolling */
#eventPanelContent {
    max-height: none;
    overflow-y: visible;
}

/* Adjust the price section to fit */
#priceSection {
    max-height: none;
    overflow-y: visible;
}

.price-group {
    max-height: none;
    overflow-y: visible;
}

.bottom-area {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    padding: 15px;
    text-align: center;
    z-index: 3;
}

.area-label {
    font-size: 0.6rem;
    color: #999;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    display: block;
}

.area-label:hover {
    color: #666;
}

.left-area .area-label {
    text-align: left;
}

.right-area .area-label {
    text-align: right;
}

.bottom-area .area-label {
    text-align: center;
}

.social-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-bottom: 8px;
    width: 100%;
}

.social-icon {
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid #000;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s;
    position: relative;
    border-radius: 8px;
}

.social-icon i {
    font-size: 1rem;
    color: #000;
}

.social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.social-icon.set {
    border-width: 2px;
}

.social-icon.set i {
    color: white;
}

.social-icon.set[data-platform="instagram"] { background: #E1306C; border-color: #E1306C; }
.social-icon.set[data-platform="facebook"] { background: #1877F2; border-color: #1877F2; }
.social-icon.set[data-platform="twitter"] { background: #000000; border-color: #000000; }
.social-icon.set[data-platform="youtube"] { background: #FF0000; border-color: #FF0000; }
.social-icon.set[data-platform="tiktok"] { background: #000000; border-color: #000000; }
.social-icon.set[data-platform="pinterest"] { background: #BD081C; border-color: #BD081C; }
.social-icon.set[data-platform="snapchat"] { background: #FFFC00; border-color: #FFFC00; }
.social-icon.set[data-platform="snapchat"] i { color: #000; }
.social-icon.set[data-platform="linkedin"] { background: #0077B5; border-color: #0077B5; }

.area-button {
    display: inline-block;
    width: 44px;
    height: 44px;
    margin: 4px;
    border: 1px solid #000;
    background: white;
    cursor: pointer;
    position: relative;
    font-size: 0.55rem;
    text-align: center;
    padding: 4px;
    overflow: hidden;
    vertical-align: top;
    transition: all 0.2s;
}

.area-button:hover { 
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.music-button {
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
}

.film-button {
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    border-color: #E50914;
}

.event-button {
    background: linear-gradient(135deg, #fff 0%, #FFD700 100%);
    border-color: #FFA500;
}

.remove-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 16px;
    height: 16px;
    background: #ff6b6b;
    color: white;
    border: 1px solid #000;
    border-radius: 50%;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
}

.reset-btn {
    background: white;
    border: 1px solid #000;
    padding: 3px 8px;
    font-size: 0.6rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: auto;
    transition: all 0.2s;
    margin-top: 5px;
}

.reset-btn:hover {
    background: #f0f0f0;
}

.reset-btn i {
    font-size: 0.6rem;
    color: #ff6b6b;
}

/* Two separate panels - positioned right */
.add-content-panel, .add-event-panel {
    position: absolute;
    right: 30px;
    width: 200px;
    background: white;
    border: 1px solid #000;
    z-index: 20;
}

.add-content-panel {
    top: 280px;
}

.add-event-panel {
    top: 340px;
}
.panels-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    max-height: 500px;
    overflow-y: auto;
}

.panels-container.expanded-mode .admin-panel:not(.expanded-panel) {
    display: none;
}

.admin-panel.expanded-panel {
    margin-bottom: 0;
}
/* When either panel is expanded, give it a higher z-index */
.add-content-panel.expanded,
.add-event-panel.expanded {
    z-index: 30;
}

.panel-header {
    padding: 8px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    border-bottom: 1px solid #000;
    background: #f9f9f9;
}

.panel-header:hover {
    background: #f0f0f0;
}

.panel-header i {
    font-size: 0.7rem;
    color: #4ECDC4;
}

.panel-header span {
    font-size: 0.7rem;
    font-weight: 500;
    flex: 1;
}

.panel-header .arrow {
    font-size: 0.6rem;
    color: #999;
}

.panel-content {
    padding: 10px;
    display: none;
}

.panel-content.expanded {
    display: block;
}

.panel-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    width: 100%;
}

.panel-header-row h4 {
    font-size: 0.7rem;
    color: #333;
    margin: 0;
    text-align: left; /* Ensure left alignment */
    flex: 1; /* Take available space */
}

.panel-header-row h4 i {
    margin-right: 5px;
    color: #4ECDC4;
}

.content-select {
    padding: 4px 20px 4px 8px; /* More right padding for arrow */
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.7rem;
    width: 95px; /* Wider to show full text */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 4px center;
    background-size: 12px;
    appearance: none; /* Removes default browser arrow */
}

.form-group {
    margin-bottom: 8px;
}

.form-group label {
    display: block;
    font-size: 0.6rem;
    color: #999;
    margin-bottom: 2px;
    text-align: left;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 5px;
    border: 1px solid #000;
    background: white;
    font-size: 0.7rem;
}

.section-header {
    text-align: left;
    margin-top: 10px;
    margin-bottom: 8px;
    font-size: 0.7rem;
    color: #333;
}

.price-group {
    margin-bottom: 8px;
    padding: 5px;
    background: #f8f9fa;
    border-radius: 3px;
}

.price-row {
    display: flex;
    gap: 3px;
    margin-bottom: 3px;
    align-items: center;
}

.price-row input {
    flex: 1;
    padding: 3px;
    font-size: 0.65rem;
    max-width: 85px;
}

.remove-price {
    background: #ff6b6b;
    color: white;
    border: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.6rem;
}

.add-price {
    background: #4ECDC4;
    color: white;
    border: none;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 0.6rem;
    cursor: pointer;
    margin-top: 5px;
    width: 100%;
}

.action-btn {
    background: white;
    border: 1px solid #000;
    padding: 6px;
    cursor: pointer;
    width: 100%;
    margin-top: 8px;
    transition: all 0.2s;
    font-size: 0.7rem;
}

.action-btn:hover {
    background: #f0f0f0;
}

.action-btn.primary {
    background: #4ECDC4;
    color: white;
    border-color: #4ECDC4;
}

.action-btn.primary:hover {
    background: #45b7b0;
}

.action-btn.film {
    background: #E50914;
    color: white;
    border-color: #E50914;
}

.action-btn.film:hover {
    background: #b2070f;
}

.action-btn.event {
    background: #FFA500;
    color: white;
    border-color: #FFA500;
}

.action-btn.event:hover {
    background: #e69500;
}

.placement-info {
    font-size: 0.55rem;
    color: #999;
    margin-top: 3px;
    text-align: right;
    font-style: italic;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border: 2px solid #000;
    padding: 25px;
    max-width: 350px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.modal-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
}

.modal-item {
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.modal-item:hover {
    background: #f0f0f0;
}

.modal-item.danger {
    border-color: #ff6b6b;
    color: #ff6b6b;
    margin-top: 15px;
}

.modal-close {
    margin-top: 15px;
    padding: 5px 15px;
    background: white;
    border: 1px solid #000;
    cursor: pointer;
    width: 100%;
}

.modal-close:hover {
    background: #f0f0f0;
}

.icon-setup-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    background: white;
    border: 2px solid #000;
    padding: 25px;
    z-index: 2000;
    display: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.icon-setup-panel h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-align: center;
}

.icon-setup-panel input {
    width: 100%;
    padding: 10px;
    border: 1px solid #000;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.icon-setup-panel .button-row {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.icon-setup-panel button {
    background: white;
    border: 1px solid #000;
    padding: 8px 20px;
    cursor: pointer;
    font-size: 0.9rem;
    min-width: 80px;
}

.icon-setup-panel button:hover {
    background: #f0f0f0;
}

.icon-setup-panel button.save-btn {
    background: #4ECDC4;
    color: white;
    border-color: #4ECDC4;
}

.icon-setup-panel button.save-btn:hover {
    background: #45b7b0;
}

.copy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #4ECDC4;
    color: white;
    padding: 10px 20px;
    border: 1px solid #000;
    z-index: 1000;
    display: none;
}

.hidden { display: none !important; }

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4ECDC4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 5px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* TMDB Attribution - Super subtle */
.tmdb-credit {
    position: absolute;
    bottom: 2px;
    right: 5px;
    font-size: 0.4rem;
    color: #ccc;
    z-index: 10;
    opacity: 0.3;
    transition: opacity 0.2s;
}

.tmdb-credit:hover {
    opacity: 0.8;
}