/* Julig Önskelista - Modern och julig design */

:root {
    --primary-color: #d63384;
    --primary-dark: #b02a5b;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #fd7e14;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --white: #ffffff;
    --border-color: #dee2e6;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.15);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s ease;
}

/* Reset och grundläggande stilar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* Knappar */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    line-height: 1.2;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-danger {
    background-color: var(--danger-color);
    color: var(--white);
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #0f5132);
    color: var(--white);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #b02a37);
    color: var(--white);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color), #e0a800);
    color: var(--white);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e0a800, #d39e00);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* Speciella knappar för startsidan */
.btn-green {
    background: linear-gradient(135deg, #198754, #0f5132);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-green:hover {
    background: linear-gradient(135deg, #157347, #0a4128);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-red {
    background: linear-gradient(135deg, #dc3545, #b02a37);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-red:hover {
    background: linear-gradient(135deg, #c82333, #9a2428);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn.btn-white {
    background: #ffffff !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
    box-shadow: var(--shadow) !important;
}

.btn.btn-white:hover {
    background: #f8f9fa !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg) !important;
    color: var(--primary-dark) !important;
}

.btn.btn-pink {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    border: 2px solid var(--primary-color) !important;
    box-shadow: var(--shadow) !important;
}

.btn.btn-pink:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg) !important;
    color: var(--white) !important;
}

/* Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h2 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Desktop navigation */
.nav-desktop {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Hamburger menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    padding: 1rem 2rem;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.mobile-menu.active {
    display: flex;
}

.user-info {
    color: var(--secondary-color);
    font-weight: 500;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(214, 51, 132, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

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

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background-color: #d1edff;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Cards */
.card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 100px);
    padding: 2rem 0;
}

/* Theme Selector */
.theme-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.theme-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    background-color: var(--white);
    min-height: 80px;
    user-select: none;
}

.theme-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.theme-option.active {
    border-color: var(--primary-color);
    background-color: rgba(214, 51, 132, 0.1);
    box-shadow: var(--shadow);
}

.theme-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.theme-name {
    font-weight: 500;
    color: var(--dark-color);
}

/* Theme Styles */
.theme-jul {
    --theme-primary: #dc3545;  /* Röd */
    --theme-secondary: #198754; /* Grön */
    --theme-accent: #dc3545;
    --theme-bg: linear-gradient(135deg, #dc3545 0%, #b02a5b 100%);
}

.theme-fodelsedag {
    --theme-primary: #ff6b6b;  /* Rosa */
    --theme-secondary: #4ecdc4; /* Turkis */
    --theme-accent: #ffe66d;
    --theme-bg: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
}

.theme-pask {
    --theme-primary: #ffc107;  /* Gul */
    --theme-secondary: #ff6b6b; /* Rosa */
    --theme-accent: #17a2b8;
    --theme-bg: linear-gradient(135deg, #ffc107 0%, #ffca2c 100%);
}

.theme-brollop {
    --theme-primary: #90EE90;  /* Ljusgrön */
    --theme-secondary: #DDA0DD; /* Ljuslila */
    --theme-accent: #fd7e14;
    --theme-bg: linear-gradient(135deg, #90EE90 0%, #98FB98 100%);
}

.theme-halloween {
    --theme-primary: #fd7e14;  /* Orange */
    --theme-secondary: #6f42c1; /* Lila */
    --theme-accent: #dc3545;
    --theme-bg: linear-gradient(135deg, #fd7e14 0%, #e67e22 100%);
}

.theme-fest {
    --theme-primary: #4ecdc4;  /* Turkis */
    --theme-secondary: #87CEEB; /* Babyblå */
    --theme-accent: #e83e8c;
    --theme-bg: linear-gradient(135deg, #4ecdc4 0%, #17a2b8 100%);
}

/* Theme-specific list styling - only affects the wishlist content */
.theme-jul .page-header h1 {
    color: var(--theme-primary);
}

.theme-jul .wishes-header h3 {
    color: var(--theme-secondary);
}

.theme-jul .wish-list-item h4 {
    color: var(--theme-primary);
}

.theme-jul .wish-list-item .wish-price {
    color: var(--theme-secondary);
    font-weight: bold;
}

.theme-jul .wish-list-item {
    border-left: 4px solid var(--theme-primary);
}

.theme-jul .view-btn.active {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
}

.theme-jul table th {
    background-color: var(--theme-primary) !important;
    color: white !important;
}

.theme-jul .table th {
    background-color: var(--theme-primary) !important;
    color: white !important;
}

.theme-jul .wishes-table th {
    background: var(--theme-primary) !important;
    background-color: var(--theme-primary) !important;
    color: white !important;
}

.theme-jul .wishes-table thead th {
    background: var(--theme-primary) !important;
    background-color: var(--theme-primary) !important;
    color: white !important;
}

.theme-fodelsedag .page-header h1 {
    color: var(--theme-primary);
}

.theme-fodelsedag .wishes-header h3 {
    color: var(--theme-secondary);
}

.theme-fodelsedag .wish-list-item h4 {
    color: var(--theme-primary);
}

.theme-fodelsedag .wish-list-item .wish-price {
    color: var(--theme-secondary);
    font-weight: bold;
}

.theme-fodelsedag .wish-list-item {
    border-left: 4px solid var(--theme-primary);
}

.theme-fodelsedag .view-btn.active {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
}

.theme-fodelsedag table th {
    background-color: var(--theme-primary) !important;
    color: white !important;
}

.theme-fodelsedag .table th {
    background-color: var(--theme-primary) !important;
    color: white !important;
}

.theme-fodelsedag .wishes-table th {
    background: var(--theme-primary) !important;
    background-color: var(--theme-primary) !important;
    color: white !important;
}

.theme-fodelsedag .wishes-table thead th {
    background: var(--theme-primary) !important;
    background-color: var(--theme-primary) !important;
    color: white !important;
}

.theme-pask .page-header h1 {
    color: var(--theme-primary);
}

.theme-pask .wishes-header h3 {
    color: var(--theme-secondary);
}

.theme-pask .wish-list-item h4 {
    color: var(--theme-primary);
}

.theme-pask .wish-list-item .wish-price {
    color: var(--theme-secondary);
    font-weight: bold;
}

.theme-pask .wish-list-item {
    border-left: 4px solid var(--theme-primary);
}

.theme-pask .view-btn.active {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
}

.theme-pask table th {
    background-color: var(--theme-primary) !important;
    color: white !important;
}

.theme-pask .table th {
    background-color: var(--theme-primary) !important;
    color: white !important;
}

.theme-pask .wishes-table th {
    background: var(--theme-primary) !important;
    background-color: var(--theme-primary) !important;
    color: white !important;
}

.theme-pask .wishes-table thead th {
    background: var(--theme-primary) !important;
    background-color: var(--theme-primary) !important;
    color: white !important;
}

.theme-brollop .page-header h1 {
    color: var(--theme-primary);
}

.theme-brollop .wishes-header h3 {
    color: var(--theme-secondary);
}

.theme-brollop .wish-list-item h4 {
    color: var(--theme-primary);
}

.theme-brollop .wish-list-item .wish-price {
    color: var(--theme-secondary);
    font-weight: bold;
}

.theme-brollop .wish-list-item {
    border-left: 4px solid var(--theme-primary);
}

.theme-brollop .view-btn.active {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
}

.theme-brollop table th {
    background-color: var(--theme-primary) !important;
    color: white !important;
}

.theme-brollop .table th {
    background-color: var(--theme-primary) !important;
    color: white !important;
}

.theme-brollop .wishes-table th {
    background: var(--theme-primary) !important;
    background-color: var(--theme-primary) !important;
    color: white !important;
}

.theme-brollop .wishes-table thead th {
    background: var(--theme-primary) !important;
    background-color: var(--theme-primary) !important;
    color: white !important;
}

.theme-halloween .page-header h1 {
    color: var(--theme-primary);
}

.theme-halloween .wishes-header h3 {
    color: var(--theme-secondary);
}

.theme-halloween .wish-list-item h4 {
    color: var(--theme-primary);
}

.theme-halloween .wish-list-item .wish-price {
    color: var(--theme-secondary);
    font-weight: bold;
}

.theme-halloween .wish-list-item {
    border-left: 4px solid var(--theme-primary);
}

.theme-halloween .view-btn.active {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
}

.theme-halloween table th {
    background-color: var(--theme-primary) !important;
    color: white !important;
}

.theme-halloween .table th {
    background-color: var(--theme-primary) !important;
    color: white !important;
}

.theme-halloween .wishes-table th {
    background: var(--theme-primary) !important;
    background-color: var(--theme-primary) !important;
    color: white !important;
}

.theme-halloween .wishes-table thead th {
    background: var(--theme-primary) !important;
    background-color: var(--theme-primary) !important;
    color: white !important;
}

.theme-fest .page-header h1 {
    color: var(--theme-primary);
}

.theme-fest .wishes-header h3 {
    color: var(--theme-secondary);
}

.theme-fest .wish-list-item h4 {
    color: var(--theme-primary);
}

.theme-fest .wish-list-item .wish-price {
    color: var(--theme-secondary);
    font-weight: bold;
}

.theme-fest .wish-list-item {
    border-left: 4px solid var(--theme-primary);
}

.theme-fest .view-btn.active {
    background-color: var(--theme-primary);
    border-color: var(--theme-primary);
}

.theme-fest table th {
    background-color: var(--theme-primary) !important;
    color: white !important;
}

.theme-fest .table th {
    background-color: var(--theme-primary) !important;
    color: white !important;
}

.theme-fest .wishes-table th {
    background: var(--theme-primary) !important;
    background-color: var(--theme-primary) !important;
    color: white !important;
}

.theme-fest .wishes-table thead th {
    background: var(--theme-primary) !important;
    background-color: var(--theme-primary) !important;
    color: white !important;
}

/* Auth pages */
.auth-page {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.auth-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    width: 100%;
    max-width: 450px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Page headers */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    margin-top: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.page-header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.header-content h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.header-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Dashboard */
.wishlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.wishlist-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.wishlist-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.wishlist-header {
    margin-bottom: 1rem;
}

.wishlist-header h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.wishlist-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat {
    background-color: var(--light-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--secondary-color);
}

.stat.claimed {
    background-color: #d1edff;
    color: #0c5460;
}

.wishlist-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Wishes */
.wishes-section {
    margin-top: 2rem;
}

.wishes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.view-toggle {
    display: flex;
    align-items: center;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 4px;
    gap: 0.5rem;
}

.view-label {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 500;
    margin-right: 0.5rem;
    white-space: nowrap;
}

.view-btn {
    padding: 8px 16px;
    border: none;
    background-color: transparent;
    color: var(--secondary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
}

.view-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow);
}

.view-btn:hover:not(.active) {
    background-color: rgba(214, 51, 132, 0.1);
    color: var(--primary-color);
}

.wishes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Extra padding för gästsidor (share.php) */
.public-page .wishes-grid {
    margin-bottom: 3rem;
}

/* Listvy */
.wishes-list {
    display: block;
}

.wish-list-item {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.wish-list-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.wish-list-item.claimed {
    opacity: 0.7;
    background-color: #f8f9fa;
}

.wish-list-item.claimed::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(214, 51, 132, 0.1) 50%, transparent 60%);
    pointer-events: none;
}

.wish-list-content {
    flex: 1;
}

.wish-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.wish-list-info h4 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.1rem;
}

.wish-description {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.wish-list-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.wish-list-meta .price {
    font-weight: 600;
    color: var(--success-color);
    font-size: 1rem;
}

.wish-list-actions {
    flex-shrink: 0;
    margin-top: 0.5rem;
}

/* Tabellvy */
.wishes-table-container {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-top: 1rem;
    margin-bottom: 2rem;
    overflow-x: auto;
}

.wishes-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 800px;
}

.wishes-table th {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.wishes-table th:first-child {
    border-top-left-radius: var(--border-radius-lg);
}

.wishes-table th:last-child {
    border-top-right-radius: var(--border-radius-lg);
}

.wishes-table td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
    line-height: 1.4;
}

.wishes-table tbody tr:hover {
    background-color: rgba(214, 51, 132, 0.05);
}

.wishes-table tbody tr:last-child td {
    border-bottom: none;
}

.claimed-row {
    opacity: 0.7;
    background-color: #f8f9fa;
}

.claimed-row:hover {
    background-color: rgba(214, 51, 132, 0.08);
}

/* Tabellkolumner med specifika bredder */
.wish-name {
    font-weight: 600;
    color: var(--primary-color);
    width: 20%;
    min-width: 120px;
}

.wish-description {
    color: var(--secondary-color);
    width: 25%;
    min-width: 150px;
    max-width: 200px;
    word-wrap: break-word;
}

.wish-price {
    font-weight: 600;
    text-align: right;
    width: 12%;
    min-width: 80px;
    white-space: nowrap;
}

/* Prisfärgkodning */
.price-low {
    color: var(--success-color); /* Grön för under 500kr */
}

.price-medium {
    color: var(--warning-color); /* Orange för 500-999kr */
}

.price-high {
    color: var(--danger-color); /* Röd för 1000kr+ */
}

.wish-link {
    text-align: center;
    width: 12%;
    min-width: 80px;
}

.wish-priority {
    text-align: center;
    width: 12%;
    min-width: 80px;
}

.wish-status {
    text-align: center;
    width: 12%;
    min-width: 100px;
}

.wish-action {
    text-align: center;
    width: 12%;
    min-width: 100px;
    white-space: nowrap;
}

/* Badges i tabellen */
.available-badge {
    background: linear-gradient(135deg, #d1edff, #b8daff);
    color: #0c5460;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
    text-align: center;
    min-width: 70px;
}

/* Grön färg för tillgängliga önskningar */
.wish-status .available-badge {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.claimed-badge {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
    text-align: center;
    min-width: 70px;
}

.claimed-info {
    font-size: 0.75rem;
    color: var(--secondary-color);
    font-style: italic;
    line-height: 1.2;
}

/* Prioritet badges i tabellen */
.wish-priority .priority-badge {
    display: inline-block;
    min-width: 50px;
    text-align: center;
}

/* Länkknappar i tabellen */
.wish-link .btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
}

/* Reservera-knapp i tabellen */
.wish-action .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
}

/* Åtgärdsknappar i tabellen */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.action-buttons .btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
}

/* Redigeringssidor */
.danger-card {
    border-left: 4px solid var(--danger-color);
    background-color: #fff5f5;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Breadcrumb */
.breadcrumb {
    margin: 1rem 0;
    padding: 0.5rem 0;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Image preview */
.image-preview {
    text-align: center;
    padding: 1rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
}

.image-preview img {
    box-shadow: var(--shadow);
}

/* Prioritetsbadges */
.priority-badge {
    background: linear-gradient(135deg, #ffc107, #ff8c00);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    min-width: 35px;
    text-align: center;
}

.priority-1, .priority-2 { background: linear-gradient(135deg, #dc3545, #c82333); }
.priority-3, .priority-4 { background: linear-gradient(135deg, #fd7e14, #e55a00); }
.priority-5, .priority-6 { background: linear-gradient(135deg, #ffc107, #e0a800); }
.priority-7, .priority-8 { background: linear-gradient(135deg, #20c997, #1aa179); }
.priority-9, .priority-10 { background: linear-gradient(135deg, #198754, #0f5132); }

.wish-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
}

.wish-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.wish-card.claimed {
    opacity: 0.7;
    background-color: #f8f9fa;
}

.wish-card.claimed::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(214, 51, 132, 0.1) 50%, transparent 60%);
    pointer-events: none;
}

.wish-image {
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.wish-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.wish-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.wish-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.price {
    font-weight: 600;
    font-size: 1.125rem;
}

/* Prisfärgkodning för kortvy */
.wish-card .price-low {
    color: var(--success-color); /* Grön för under 500kr */
}

.wish-card .price-medium {
    color: var(--warning-color); /* Orange för 500-999kr */
}

.wish-card .price-high {
    color: var(--danger-color); /* Röd för 1000kr+ */
}

.claimed-badge {
    background-color: var(--success-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.claim-section {
    margin-top: 1rem;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--secondary-color);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Share functionality */
.share-container {
    display: grid;
    gap: 2rem;
}

.share-link-container {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

.share-link-input {
    flex: 1;
    background-color: var(--light-color);
    border: 1px solid var(--border-color);
    font-family: monospace;
    font-size: 0.875rem;
}

.share-note {
    font-size: 0.875rem;
    color: var(--secondary-color);
    font-style: italic;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 0;
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--primary-color);
}

.close {
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--secondary-color);
    line-height: 1;
}

.close:hover {
    color: var(--primary-color);
}

.modal .form {
    padding: 2rem;
}

/* Landing page */
.landing-page {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-image {
    margin-top: 3rem;
}

.christmas-illustration {
    position: relative;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gift-box, .snowflake, .tree, .santa {
    font-size: 3rem;
    position: absolute;
    animation: float 3s ease-in-out infinite;
}

.gift-box {
    animation-delay: 0s;
}

.snowflake {
    top: 20%;
    left: 20%;
    animation-delay: 0.5s;
}

.tree {
    top: 30%;
    right: 25%;
    animation-delay: 1s;
}

.santa {
    bottom: 20%;
    left: 30%;
    animation-delay: 1.5s;
}

/* Features */
.features {
    padding: 4rem 0;
    background-color: var(--white);
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    background-color: var(--light-color);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* How it works */
.how-it-works {
    padding: 4rem 0;
    background-color: var(--light-color);
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* CTA */
.cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta p {
    color: rgba(255,255,255,0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* Public page */
.public-page {
    background-color: var(--light-color);
}

.owner-info {
    color: var(--secondary-color);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.wishlist-description {
    font-size: 1.125rem;
    color: var(--secondary-color);
    font-style: italic;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .page-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-row-3 {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .share-link-container {
        flex-direction: column;
    }
    
    .wishlist-actions {
        flex-wrap: wrap;
    }
    
    .nav-desktop {
        display: none;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .auth-card {
        margin: 1rem auto;
        padding: 2rem;
        width: calc(100% - 2rem);
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal .form {
        padding: 1.5rem;
    }
    
    .wish-list-item {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .wish-list-content {
        flex-direction: column;
        text-align: center;
    }
    
    .wish-list-image {
        width: 100%;
        height: 150px;
        margin: 0 auto;
    }
    
    /* Tabellvy responsiv - Kortvy på mobil */
    .wishes-table-container {
        display: none;
    }
    
    /* Visa kortvy istället för tabellvy på mobil */
    .wishes-table-container.mobile-cards {
        display: block;
    }
    
    .wishes-table-container.mobile-cards .wishes-table {
        display: none;
    }
    
    .wishes-table-container.mobile-cards::before {
        content: "📱 Listvy är inte tillgänglig på mobil - använd kortvy istället";
        display: block;
        text-align: center;
        padding: 2rem;
        color: var(--secondary-color);
        font-style: italic;
        background-color: var(--light-color);
        border-radius: var(--border-radius);
        margin-bottom: 1rem;
    }
    
    /* Alternativt: Visa tabellvy med scroll på större mobiler */
    @media (min-width: 480px) {
        .wishes-table-container {
            display: block;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }
        
        .wishes-table-container.mobile-cards::before {
            display: none;
        }
        
        .wishes-table-container.mobile-cards .wishes-table {
            display: table;
        }
        
        .wishes-table {
            min-width: 600px;
        }
        
        .wishes-table th,
        .wishes-table td {
            padding: 0.5rem 0.25rem;
            font-size: 0.75rem;
        }
        
        .wish-name {
            min-width: 80px;
        }
        
        .wish-description {
            min-width: 100px;
            max-width: 120px;
        }
        
        .wish-price,
        .wish-link,
        .wish-priority,
        .wish-status,
        .wish-action {
            min-width: 60px;
        }
        
        .available-badge,
        .claimed-badge {
            min-width: 50px;
            font-size: 0.65rem;
            padding: 0.2rem 0.4rem;
        }
        
        .wish-action .btn,
        .wish-link .btn {
            padding: 0.25rem 0.4rem;
            font-size: 0.65rem;
        }
    }
    
    .wishes-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .view-toggle {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: 1rem;
    }
}
