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

        body {
            font-family: Arial, sans-serif;
            background-color: #f5f5f5;
            padding: 0;
            margin: 0;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        .container {
            max-width: 1400px;
            margin: auto;
            background-color: white;
            border: 1px solid #ddd;
            border-radius: 4px;
            display: flex;
            flex-direction: column;
            width: 100%;
        }

        .header {
            padding: 20px;
            border-bottom: 1px solid #ddd;
        }

        .header h1 {
            font-size: 28px;
            margin-bottom: 10px;
        }

        .header p {
            color: #666;
            font-size: 14px;
        }

        .tabs {
            display: flex;
            border-bottom: 1px solid #ddd;
        }

        .tab {
            padding: 12px 24px;
            background-color: #f5f5f5;
            border: none;
            cursor: pointer;
            font-size: 14px;
            border-right: 1px solid #ddd;
        }

        .tab.active {
            background-color: white;
            border-bottom: 2px solid #007bff;
        }

        .toolbar {
            padding: 15px 20px;
            background-color: #f8f9fa;
            border-bottom: 1px solid #ddd;
            display: flex;
            gap: 10px;
        }

        .btn {
            padding: 8px 16px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
        }

        .btn-primary {
            background-color: #007bff;
            color: white;
        }

        .btn-success {
            background-color: #28a745;
            color: white;
        }

        .content {
            display: flex;
            padding: 20px;
            gap: 30px;
            flex-wrap: wrap;
        }

        .preview {
            flex: 0 0 280px;
            display: flex;
            justify-content: center;
            width: 100%;
            min-width: 280px;
            align-items: flex-start;
        }

        .card-preview {
            width: 260px;
            height: 380px;
            min-height: 380px;
            position: relative;
        }

        .first-owner-badge {
            position: absolute;
            top: 165px;
            left: 38px;
            width: 32px;
            height: 32px;
            z-index: 10;
            pointer-events: none;
            object-fit: contain;
        }
        
        .chemistry-style-badge {
            position: absolute;
            top: 140px;
            left: 38px;
            width: 32px;
            height: 32px;
            z-index: 11;
            pointer-events: none;
            object-fit: contain;
        }
        
        .playstyle-badge {
            position: absolute;
            top: 250px;
            left: 8px;
            width: 32px;
            height: 32px;
            z-index: 12;
            pointer-events: none;
        }
        
        .playstyle-badge-background {
            position: absolute;
            top: 0;
            left: 0;
            width: 150%;
            height: 100%;
            object-fit: contain;
        }
        
        .playstyle-badge-icon {
            position: absolute;
            top: 0;
            left: 7px;
            width: 90%;
            height: 100%;
            object-fit: contain;
            z-index: 1;
        }
        
        .chemistry-badge {
            position: absolute;
            top: 310px;
            right: 190px;
            width: 50px;
            height: 50px;
            min-width: 50px;
            min-height: 50px;
            max-width: 50px;
            max-height: 50px;
            z-index: 10;
            pointer-events: none;
            object-fit: cover;
            display: block;
        }
        
        .workrate-boxes {
            position: absolute;
            right: 8px;
            top: 140px;
            display: flex;
            flex-direction: column;
            gap: 4px;
            z-index: 10;
            pointer-events: none;
        }
        
        .workrate-box {
            background-color: #1a1a1a;
            color: white;
            padding: 4px 6px;
            border-radius: 2px;
            font-size: 10px;
            font-weight: bold;
            text-align: center;
            min-width: 45px;
            line-height: 1.2;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        }
        
        .workrate-box-label {
            font-size: 8px;
            margin-bottom: 2px;
            text-transform: uppercase;
        }
        
        .workrate-box-value {
            font-size: 11px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 2px;
        }
        
        .workrate-star {
            font-size: 10px;
        }
        
        #card-preview > div {
            width: 100%;
            height: 100%;
            position: relative;
        }
        
        .player-name {
            position: absolute;
            top: 243px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 18px;
            font-weight: bold;
            text-align: center;
            z-index: 10;
            pointer-events: none;
            white-space: nowrap;
            max-width: 90%;
            overflow: hidden;
            text-overflow: ellipsis;
            font-family: Arial, sans-serif;
            letter-spacing: 0.5px;
        }
        
        .player-rating {
            position: absolute;
            top: 85px;
            left: 40px;
            color: white;
            font-size: 32px;
            font-weight: bold;
            text-align: center;
            z-index: 10;
            pointer-events: none;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
            font-family: Arial, sans-serif;
        }
        
        .player-position {
            position: absolute;
            top: 120px;
            left: 45px;
            color: white;
            font-size: 14px;
            font-weight: bold;
            text-align: center;
            z-index: 10;
            pointer-events: none;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
            font-family: Arial, sans-serif;
            text-transform: uppercase;
        }

        .player-image {
            position: absolute;
            z-index: 5;
            pointer-events: none;
            object-fit: contain;
        }

        .nation-flag {
            position: absolute;
            top: 82%;
            left: 34%;
            height: 16px;
            width: 24px;
            min-width: 24px;
            max-width: 24px;
            min-height: 16px;
            max-height: 16px;
            object-fit: cover;
            border-radius: 2px;
            z-index: 10;
            pointer-events: none;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
            text-align: right;
        }
        
        .league-logo {
            position: absolute;
            top: 81.7%;
            left: 50%;
            transform: translateX(-50%);
            height: 5.5%;
            width: 8%;
            max-width: 8%;
            z-index: 10;
            pointer-events: none;
            object-fit: contain;
            display: block;
            text-align: center;
        }
        
        .club-logo {
            position: absolute;
            top: 82%;
            right: 37%;
            height: 4.1%;
            width: auto;
            z-index: 10;
            pointer-events: none;
            object-fit: contain;
            display: block;
        }
        
        .player-stats {
            position: absolute;
            bottom: 75px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 3px;
            z-index: 10;
            pointer-events: none;
            width: 100%;
            max-width: 200px;
            padding: 0 10px;
            box-sizing: border-box;
        }
        
        .player-stat {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            flex: 1;
            min-width: 0;
            max-width: 30px;
        }
        
        .player-stat-label {
            font-size: 11px;
            font-weight: bold;
            text-align: center;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
            font-family: Arial, sans-serif;
            margin-bottom: 6px;
            text-transform: uppercase;
            letter-spacing: 0.3px;
            white-space: nowrap;
        }
        
        .player-stat-value {
            font-size: 20px;
            font-weight: bold;
            text-align: center;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
            font-family: Arial, sans-serif;
            line-height: 1;
            white-space: nowrap;
        }

        .form-section {
            flex: 1;
        }

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

        .form-group label {
            display: inline-block;
            width: 150px;
            font-weight: 600;
            word-wrap: break-word;
            font-size: 14px;
            vertical-align: top;
            padding-top: 8px;
        }

        .form-group input,
        .form-group select {
            padding: 8px 12px;
            border: 1px solid #ddd;
            max-width: 100%;
            border-radius: 4px;
            font-size: 14px;
            width: 300px;
        }

        .button-group {
            display: inline-flex;
            gap: 5px;
        }

        .btn-sm {
            padding: 6px 12px;
            font-size: 13px;
        }

        .btn-outline {
            background-color: white;
            border: 1px solid #ddd;
            color: #333;
        }

        .btn-outline.active {
            background-color: #007bff;
            color: white;
            border-color: #007bff;
        }

        .position-btn {
            padding: 12px 16px;
            background-color: #1a1a1a;
            border: 2px solid #333;
            border-radius: 6px;
            color: white;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            text-align: center;
        }

        .position-btn:hover {
            background-color: #2a2a2a;
            border-color: #ff5722;
        }

        .position-btn.active {
            background-color: #ff5722;
            border-color: #ff5722;
            color: white;
        }

        .section-header {
            background-color: #f8f9fa;
            padding: 10px 15px;
            border: 1px solid #ddd;
            border-radius: 4px;
            margin-bottom: 15px;
            cursor: pointer;
            font-weight: 600;
        }

        .section-header:after {
            content: '▼';
            float: right;
            font-size: 12px;
        }

        .download-footer {
            text-align: right;
            padding: 20px;
            border-top: 1px solid #ddd;
        }

        .color-picker {
            display: inline-block;
            width: 50px;
            height: 50px;
            border: 2px solid #ddd;
            border-radius: 4px;
            cursor: pointer;
            vertical-align: middle;
            margin-right: 10px;
            background: transparent;
            overflow: hidden;
            position: relative;
        }

        .color-picker img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

/* Body styles - Change font family and background color here */
/* To change background: modify background-color value */
/* To change font: modify font-family value */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #fff; /* Change this to any color you want for the page background */
}

/* ============================================
   NAVBAR STYLES
   ============================================ */

/* Main navbar container - Change background color and border here */
/* To change navbar color: modify background-color (#1a1a1a = dark grey) */
/* To change bottom border color: modify border-bottom color (#ff0000 = red) */
/* To change border thickness: modify border-bottom width (2px) */
.navbar {
    background-color: #1a1a1a; /* Dark grey background - change to any color */
    border-bottom: 2px solid #ff0000; /* Red bottom border - change color/thickness here */
    padding: 0; /* Space around navbar - increase for more padding */
    margin: 0; /* Remove any default margins */
    width: 100%; /* Ensure navbar spans full width */
}

/* Navbar inner container - Controls layout and spacing */
/* To change max width: modify max-width (1400px) */
/* To change navbar height: modify height (70px) */
/* To change horizontal padding: modify padding (0 20px = 0 top/bottom, 20px left/right) */
.nav-container {
    max-width: 1400px; /* Maximum width of navbar content - increase for wider navbar */
    margin: 0 auto; /* Centers the navbar */
    display: flex;
    align-items: center;
    padding: 0 20px; /* Horizontal padding - increase for more side spacing */
    height: 70px; /* Navbar height - increase for taller navbar */
}

/* ============================================
   LEFT NAVIGATION (LOGO + LINKS)
   ============================================ */

/* Container for logo and navigation links - Controls spacing between logo and links */
/* To change gap between logo and nav links: modify gap (15px) */
.nav-left {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between logo and navigation links - increase for more spacing */
}

/* ============================================
   LOGO SECTION
   ============================================ */

/* Logo container - Controls spacing between icon and text */
/* To change gap between logo icon and text: modify gap (12px) */
.logo-section {
    display: flex;
    align-items: center;
    gap: 12px; /* Space between logo icon and text - increase for more spacing */
    text-decoration: none; /* Removes underline from link */
    cursor: pointer; /* Shows pointer cursor on hover */
}

/* Logo icon (image) - Customize size and appearance */
/* To change size: modify width and height (40px) */
/* To change shape: modify border-radius (50% = circle, lower % = less round, 0% = square) */
/* To add border: add border property (e.g., border: 2px solid #ff0000;) */
.logo-icon {
    width: 40px; /* Logo width - increase for larger logo */
    height: 40px; /* Logo height - increase for larger logo */
    object-fit: contain; /* Keeps logo proportions - change to 'cover' to fill space */
    border-radius: 50%; /* Makes it circular - lower % for less round, 0% for square, remove for original shape */
    display: block; /* Ensures image displays properly */
}

/* Logo text ("AbsolutFUT") - Customize text appearance */
/* To change text color: modify color (#ff0000 = red) */
/* To change text size: modify font-size (24px) */
/* To change text weight: modify font-weight (bold) */
/* To change letter spacing: modify letter-spacing (0.5px) */
.logo-text {
    color: #ff0000; /* Red text color - change to any color */
    font-size: 24px; /* Text size - increase for larger text */
    font-weight: bold; /* Text weight - options: normal, bold, 100-900 */
    letter-spacing: 0.5px; /* Space between letters - increase for more spacing */
    padding-right: 20px;
    text-shadow: 0 2px 4px rgba(255, 0, 0, 0.3); /* Red glow effect - remove or adjust */
}

/* ============================================
   NAVIGATION LINKS
   ============================================ */

/* Navigation links container - Controls spacing between links */
/* To change gap between nav items: modify gap (30px) */
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px; /* Space between navigation links - increase for more spacing */
}

/* Individual navigation link - Customize link appearance */
/* To change link color: modify color (#ff0000 = red) */
/* To change link size: modify font-size (16px) */
/* To change link weight: modify font-weight (500) */
/* To change hover color: see .nav-link:hover below */
.nav-link {
    color: #ff0000; /* Red link color - change to any color */
    text-decoration: none; /* Removes underline - change to 'underline' to add it */
    font-size: 17px; /* Link text size - increase for larger text */
    font-weight: 500; /* Text weight - options: normal, bold, 100-900 */
    transition: color 0.2s ease; /* Smooth color change on hover - adjust time (0.2s) for faster/slower */
    cursor: pointer;
}

/* Navigation link hover effect - Change what happens when you hover over links */
/* To change hover color: modify color (#ff3333 = lighter red) */
.nav-link:hover {
    color: #ff3333; /* Lighter red on hover - change to any color */
}

/* ============================================
   CARD SELECTION MODAL
   ============================================ */

.card-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.card-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #888;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-modal-header {
    padding: 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.card-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.card-modal-close:hover {
    background-color: #e0e0e0;
    color: #000;
}

.card-modal-body {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.card-option {
    cursor: pointer;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    transition: all 0.2s;
    background-color: white;
}

.card-option:hover {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-option.selected {
    border-color: #28a745;
    background-color: #f0f8f0;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}

.card-option img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 8px;
}

.card-option-name {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    text-transform: capitalize;
}
/* Feedback Button Hover Effect */
.btn-primary:hover {
    background-color: #0056b3 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* Tablet and smaller devices (768px and below) */
@media (max-width: 768px) {
    /* Navbar adjustments */
    .nav-container {
        padding: 0 15px;
        height: auto;
        flex-direction: column;
        gap: 10px;
    }

    .nav-left {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }

    .logo-text {
        font-size: 18px;
        padding-right: 10px;
    }

    .logo-icon {
        width: 35px;
        height: 35px;
    }

    .nav-links {
        width: 100%;
        gap: 15px;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .nav-link {
        font-size: 14px;
    }

    /* Header adjustments */
    .header {
        padding: 15px;
    }

    .header h1 {
        font-size: 22px;
    }

    /* Tabs adjustments */
    .tabs {
        flex-wrap: wrap;
    }

    .tab {
        padding: 10px 16px;
        font-size: 12px;
        border-right: none;
    }

    /* Toolbar adjustments */
    .toolbar {
        flex-wrap: wrap;
        padding: 10px 15px;
        gap: 8px;
    }

    .btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* Main content layout */
    .content {
        flex-direction: column;
        align-items: center;
        padding: 15px;
        gap: 20px;
    }

    .preview {
        width: 100%;
        max-width: 300px;
    }

    .form-section {
        width: 100%;
    }

    /* Form adjustments */
    .form-group {
        margin-bottom: 15px;
    }

    .form-group label {
        display: block;
        width: 100%;
        margin-bottom: 8px;
        padding-top: 0;
    }

    .form-group input,
    .form-group select {
        width: 100%;
        display: block;
    }

    /* Button groups - stack on small screens */
    .button-group {
        flex-wrap: wrap;
        width: 100%;
    }

    .btn-sm {
        flex: 1;
        min-width: 100px;
        padding: 8px 10px;
    }

    /* Position buttons in grid */
    .position-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    /* Modal adjustments */
    .card-modal-content {
        width: 95%;
        margin: 20% auto;
    }

    .card-modal-body {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        max-height: 50vh;
    }

    .card-option {
        padding: 8px;
    }

    .section-header {
        padding: 8px 12px;
        font-size: 14px;
        margin-bottom: 10px;
    }

    /* Workrate boxes - adjust positioning for mobile */
    .workrate-boxes {
        top: 130px;
        right: 5px;
        gap: 2px;
    }

    .workrate-box {
        padding: 3px 5px;
        font-size: 9px;
        min-width: 40px;
    }

    /* Player stats adjustments */
    .player-stats {
        bottom: 70px;
        max-width: 95%;
        gap: 2px;
    }

    .player-stat {
        min-width: 0;
        max-width: 25px;
    }

    .player-stat-label {
        font-size: 9px;
    }

    .player-stat-value {
        font-size: 16px;
    }

    /* Player name and position adjustments */
    .player-name {
        font-size: 14px;
        top: 235px;
    }

    .player-rating {
        font-size: 26px;
        top: 75px;
        left: 35px;
    }

    .player-position {
        font-size: 12px;
        top: 110px;
    }
}

/* Mobile phones (480px and below) */
@media (max-width: 480px) {
    /* Overall layout */
    body {
        font-size: 13px;
    }

    /* Navbar - stack vertically */
    .nav-container {
        padding: 0 10px;
    }

    .nav-left {
        gap: 8px;
    }

    .logo-section {
        gap: 8px;
    }

    .logo-icon {
        width: 30px;
        height: 30px;
    }

    .logo-text {
        font-size: 16px;
        padding-right: 5px;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-link {
        font-size: 12px;
    }

    /* Header */
    .header {
        padding: 10px;
    }

    .header h1 {
        font-size: 18px;
        margin-bottom: 5px;
    }

    .header p {
        font-size: 12px;
    }

    /* Container */
    .container {
        border: none;
        border-radius: 0;
        margin: 0;
    }

    /* Tabs */
    .tab {
        padding: 8px 12px;
        font-size: 11px;
        flex: 1;
    }

    /* Toolbar */
    .toolbar {
        padding: 8px 10px;
        gap: 5px;
    }

    .btn {
        padding: 6px 10px;
        font-size: 11px;
        flex: 1;
    }

    /* Content */
    .content {
        padding: 10px;
        gap: 15px;
    }

    .preview {
        max-width: 100%;
    }

    .card-preview {
        width: 240px;
        height: 350px;
        min-height: 350px;
    }

    /* Form */
    .form-group {
        margin-bottom: 12px;
    }

    .form-group label {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .form-group input,
    .form-group select {
        padding: 6px 8px;
        font-size: 12px;
    }

    .button-group {
        flex-wrap: wrap;
        gap: 4px;
    }

    .btn-sm {
        padding: 6px 8px;
        font-size: 11px;
        min-width: auto;
        flex: 1;
        min-width: 80px;
    }

    /* Position grid */
    .position-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .position-btn {
        padding: 10px 12px;
        font-size: 12px;
    }

    /* Section headers */
    .section-header {
        padding: 8px 10px;
        font-size: 13px;
        margin-bottom: 8px;
    }

    /* Color picker */
    .color-picker {
        width: 40px;
        height: 40px;
        margin-right: 5px;
    }

    /* Modal */
    .card-modal-content {
        width: 95%;
        margin: 30% auto;
    }

    .card-modal-header {
        padding: 15px;
    }

    .card-modal-header h3 {
        font-size: 16px;
    }

    .card-modal-body {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 15px;
    }

    .card-option {
        padding: 6px;
    }

    .card-option-name {
        font-size: 11px;
    }

    /* Card design elements */
    .first-owner-badge {
        width: 28px;
        height: 28px;
        top: 155px;
        left: 33px;
    }

    .chemistry-style-badge {
        width: 28px;
        height: 28px;
        top: 130px;
        left: 33px;
    }

    .playstyle-badge {
        width: 28px;
        height: 28px;
        top: 240px;
        left: 5px;
    }

    .chemistry-badge {
        width: 45px;
        height: 45px;
        min-width: 45px;
        min-height: 45px;
        max-width: 45px;
        max-height: 45px;
        top: 300px;
        right: 170px;
    }

    /* Workrate boxes */
    .workrate-boxes {
        top: 120px;
        right: 3px;
        gap: 2px;
    }

    .workrate-box {
        padding: 2px 4px;
        font-size: 8px;
        min-width: 35px;
    }

    .workrate-box-label {
        font-size: 7px;
    }

    .workrate-box-value {
        font-size: 9px;
    }

    /* Player stats */
    .player-stats {
        bottom: 65px;
        max-width: 90%;
        gap: 2px;
    }

    .player-stat {
        max-width: 22px;
    }

    .player-stat-label {
        font-size: 8px;
        margin-bottom: 4px;
    }

    .player-stat-value {
        font-size: 14px;
    }

    /* Player info */
    .player-name {
        font-size: 12px;
        top: 230px;
    }

    .player-rating {
        font-size: 24px;
        top: 70px;
        left: 30px;
    }

    .player-position {
        font-size: 11px;
        top: 100px;
        left: 35px;
    }

    /* Flags and logos */
    .nation-flag {
        height: 14px;
        width: 21px;
        min-width: 21px;
        max-width: 21px;
        min-height: 14px;
        max-height: 14px;
    }

    .league-logo {
        height: 5%;
        width: 7%;
        max-width: 7%;
    }

    .club-logo {
        height: 3.5%;
    }

    /* Download footer */
    .download-footer {
        padding: 15px;
    }
}

/* Extra small devices (320px and below) */
@media (max-width: 320px) {
    .logo-text {
        font-size: 14px;
    }

    .header h1 {
        font-size: 16px;
    }

    .nav-link {
        font-size: 11px;
    }

    .btn-sm {
        min-width: 70px;
        padding: 5px 6px;
        font-size: 10px;
    }

    .card-preview {
        width: 220px;
        height: 320px;
        min-height: 320px;
    }

    .form-group label {
        font-size: 11px;
    }

    .player-stat-value {
        font-size: 12px;
    }
}

/* ============================================
   TOUCH-FRIENDLY ENHANCEMENTS
   ============================================ */

/* Increase touch target size for mobile */
@media (max-width: 768px) {
    .btn,
    .tab,
    .position-btn,
    .btn-sm {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .form-group input,
    .form-group select {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Increase padding for better tap targets */
    a {
        padding: 8px 4px;
    }

    /* Better spacing for interactive elements */
    .button-group {
        margin: 10px 0;
    }

    /* Prevent zoom on input focus for iOS */
    input[type="text"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px;
    }
}