:root {
    --bg-color: #0a0118;
    --glass-bg: rgba(139, 92, 246, 0.05);
    --glass-border: rgba(139, 92, 246, 0.15);
    --text-primary: #f5f3ff;
    --text-secondary: #c4b5fd;
    --accent-color: #a855f7;
    --accent-glow: rgba(168, 85, 247, 0.4);
    --card-hover-bg: rgba(139, 92, 246, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    position: relative;
}

.bg-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 75%);
    z-index: -1;
    filter: blur(60px);
}

.glow-1 {
    top: -150px;
    right: -100px;
}

.glow-2 {
    bottom: -150px;
    left: -100px;
    opacity: 0.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.25rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

header {
    text-align: center;
    margin-bottom: 3.5rem;
}

h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #c4b5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
}

header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
}

.links-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1;
}

.link-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    /* Entire card is clickable */
    color: inherit;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.link-card:hover {
    background: var(--card-hover-bg);
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.5);
}

.link-card {
    position: relative;
    overflow: hidden;
    /* Required for the ribbon badge */
}

.profile-img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
}

.card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.company-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drive-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--accent-color);
    color: #ffffff;
    padding: 0.625rem 1.25rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px -2px var(--accent-glow);
    flex-shrink: 0;
}

.link-card:hover .drive-btn {
    background: #c084fc;
    transform: scale(1.1);
    box-shadow: 0 8px 20px -4px var(--accent-glow);
}

.drive-btn svg {
    width: 16px;
    height: 16px;
}

/* Diagonal Ribbon Badge - Better Readability */
.badge {
    position: absolute;
    top: 15px;
    right: -30px;
    width: 130px;
    background: linear-gradient(135deg, #ff0055 0%, #ff4d00 100%);
    color: white;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 0.35rem 0;
    text-align: center;
    transform: rotate(45deg);
    box-shadow: 0 4px 10px rgba(255, 0, 85, 0.3);
    z-index: 10;
    border: none;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    animation: ribbon-glow 2s infinite ease-in-out;
}

@keyframes ribbon-glow {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.2) saturate(1.2);
    }
}

.link-card {
    position: relative;
    /* For absolute badge */
}

.skeleton {
    background: linear-gradient(90deg, var(--glass-bg) 25%, rgba(139, 92, 246, 0.1) 50%, var(--glass-bg) 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
    height: 80px;
    border-radius: 1.5rem;
}

@keyframes loading-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

footer {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.6;
}

@media (max-width: 480px) {
    .container {
        padding: 2rem 1rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    .link-card {
        padding: 0.875rem 1rem;
        gap: 0.75rem;
    }

    .profile-img {
        width: 40px;
        height: 40px;
    }

    .drive-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
}

/* Tabs Navigation */
.tabs-nav {
    display: flex;
    gap: 0.4rem;
    background: var(--glass-bg);
    padding: 0.4rem;
    border-radius: 1.25rem;
    border: 1px solid var(--glass-border);
    margin: 0 auto 2.5rem auto;
    width: fit-content;
    max-width: 100%;
}

.tab-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.tab-btn i {
    width: 18px;
    height: 18px;
}

.tab-btn.active {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 12px -2px var(--accent-glow);
}

@media (max-width: 500px) {
    .tabs-nav {
        width: 100%;
        gap: 0.2rem;
        padding: 0.3rem;
    }
    .tab-btn {
        padding: 0.6rem 0.5rem;
        flex: 1;
        justify-content: center;
        font-size: 0.75rem;
        gap: 4px;
    }
    .tab-btn span {
        display: none; /* Hide text on very small screens, show only icons */
    }
}

/* Job Tracking Section */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

/* Quick Add Form Premium Styles */
.quick-add-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    animation: quickAddSlide 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes quickAddSlide {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.qa-input-group {
    display: grid;
    gap: 0.8rem;
}

.qa-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.qa-field {
    position: relative;
    display: flex;
    align-items: center;
}

.qa-field i {
    position: absolute;
    left: 12px;
    width: 14px;
    height: 14px;
    color: var(--accent-color);
    opacity: 0.7;
}

.qa-field input {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 0.7rem 0.7rem 0.7rem 2.2rem;
    border-radius: 12px;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.qa-field input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.1);
}

.qa-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.btn-qa-save {
    flex: 2;
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-qa-save:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn-qa-cancel {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    padding: 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-qa-cancel:hover {
    background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 480px) {
    .qa-input-row {
        grid-template-columns: 1fr;
    }
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Admin Form */
.admin-form {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.75rem;
    border-radius: 1.25rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
}

.admin-form input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: white;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

.admin-form input:focus {
    border-color: var(--accent-color);
}

.admin-form button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    white-space: nowrap;
}

.admin-form button:hover {
    opacity: 0.9;
    transform: scale(0.98);
}

/* Job Cards */
.job-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s, background 0.3s, border-color 0.3s;
    user-select: none;
}

.drag-handle {
    cursor: grab;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.drag-handle:hover {
    opacity: 1;
    color: var(--accent-color);
}

.drag-handle:active {
    cursor: grabbing;
}

.job-card:active {
    cursor: grabbing;
}

/* SortableJS Styles */
.sortable-ghost {
    opacity: 0.2;
    background: var(--accent-color) !important;
    border: 2px dashed var(--accent-color) !important;
}

.sortable-chosen {
    background: var(--card-hover-bg) !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.sortable-drag {
    opacity: 1 !important;
    transform: scale(1.05) rotate(2deg);
    cursor: grabbing;
    background: var(--accent-color) !important;
    z-index: 1000;
}

.job-card.completed {
    opacity: 0.6;
}

.job-card.completed .job-title {
    text-decoration: line-through;
    color: var(--text-secondary);
}

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

.job-title {
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
}

.job-notes {
    display: none;
}

.job-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-complete, .btn-delete {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    padding: 0.5rem;
    border-radius: 0.6rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-complete:hover, .btn-delete:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.btn-complete:active, .btn-delete:active {
    transform: scale(0.95);
}
/* Calendar Styles */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.calendar-nav {
    display: flex;
    gap: 0.3rem;
}

.calendar-nav button {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.4rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav button:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    background: var(--glass-bg);
    padding: 1rem;
    border-radius: 1.25rem;
    border: 1px solid var(--glass-border);
}

.calendar-day-head {
    text-align: center;
    font-weight: 700;
    font-size: 0.7rem;
    color: var(--text-secondary);
    padding-bottom: 0.5rem;
    text-transform: uppercase;
}

.calendar-day {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    padding: 0.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    position: relative;
    min-height: 140px;
    min-width: 0;
    transition: all 0.2s;
    overflow-y: auto;
}

.calendar-day::-webkit-scrollbar {
    width: 2px;
}
.calendar-day::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 1px;
}

.calendar-day.today {
    border-color: var(--accent-color);
    background: rgba(168, 85, 247, 0.1);
}

.calendar-day.other-month {
    opacity: 0.3;
}

.day-number {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
    color: var(--text-secondary);
}

.shooting-item {
    font-size: 0.7rem;
    background: var(--accent-color);
    color: white;
    padding: 4px 6px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 4px;
    cursor: pointer;
}

.shooting-item:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.shooting-item .s-time {
    font-weight: 800;
    font-size: 0.6rem;
    opacity: 0.9;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 1px;
}

.shooting-item .s-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: #0f0525;
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-content h2 {
    font-family: 'Outfit', sans-serif;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: white;
    outline: none;
    font-family: inherit;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.modal-actions button {
    flex: 1;
    padding: 0.75rem;
    border-radius: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-cancel {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.btn-save {
    background: var(--accent-color);
    border: none;
    color: white;
}

.btn-save:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-plan {
    width: 100%;
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 1rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 8px 16px -4px var(--accent-glow);
}

.btn-plan:hover {
    transform: translateY(-2px);
    background: #b666ff;
    box-shadow: 0 12px 24px -4px var(--accent-glow);
}

@media (max-width: 480px) {
    .calendar-grid {
        gap: 0.15rem;
        padding: 0.25rem;
        border-radius: 0.75rem;
    }
    .calendar-day {
        min-height: 120px;
        padding: 0.15rem;
        border-radius: 0.4rem;
    }
    .day-number {
        font-size: 0.65rem;
    }
    .shooting-item {
        font-size: 0.55rem;
        padding: 2px 4px;
        gap: 1px;
    }
    .shooting-item .s-time {
        font-size: 0.5rem;
    }
}

/* Day Details Modal */
.shooting-list-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    animation: fadeIn 0.3s easeOut;
}

.shooting-list-info {
    flex-grow: 1;
}

.shooting-list-time {
    font-size: 0.75rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 0.1rem;
    display: block;
}

.shooting-list-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.shooting-list-actions {
    display: flex;
    gap: 0.4rem;
}

.btn-mini-delete {
    background: rgba(255, 0, 0, 0.1);
    color: #ff4d4d;
    border: 1px solid rgba(255, 0, 0, 0.2);
    padding: 0.4rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-mini-delete:hover {
    background: #ff4d4d;
    color: white;
}

.day-details-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.day-details-title h2 {
    margin-bottom: 0 !important;
}

.date-badge {
    background: var(--glass-bg);
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}

.inline-add-form {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.inline-add-form h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.calendar-day {
    cursor: pointer;
}

.calendar-day:hover {
    border-color: var(--accent-color);
    background: rgba(168, 85, 247, 0.05);
}
