* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #1a202c;
}

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4c51bf;
}

.logo i {
    font-size: 2rem;
}

.user-info {
    display: flex;
    align-items: center;
}

.tokens-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #4c51bf, #667eea);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(76, 81, 191, 0.3);
}

.token-count {
    font-weight: 700;
    font-size: 1.1rem;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.card-header {
    padding: 1.5rem 2rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.card-header h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
}

.card-body {
    padding: 2rem;
}

.pc-selection-section {
    margin-bottom: 3rem;
}

.pc-selector {
    max-width: 500px;
    margin: 0 auto;
}

.select-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.pc-dropdown {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.pc-dropdown:focus {
    outline: none;
    border-color: #4c51bf;
    box-shadow: 0 0 0 3px rgba(76, 81, 191, 0.1);
}

.error-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #fed7d7;
    color: #c53030;
    border-radius: 8px;
    font-weight: 500;
}

.commands-section {
    margin-bottom: 3rem;
}

.commands-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.commandContainer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.commandContainer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.commandContainer:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.commandContainer:first-child:hover {
    transform: translateY(-2px);
}

.containerLabel {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.commandDescription {
    text-align: center;
    font-size: 1rem;
    color: #718096;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.commandLabel {
    display: block;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #4a5568;
}

.numberInput, .textInput, .dropDownInput {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
    background: white;
}

.numberInput:focus, .textInput:focus, .dropDownInput:focus {
    outline: none;
    border-color: #4c51bf;
    box-shadow: 0 0 0 3px rgba(76, 81, 191, 0.1);
}

.numberInput {
    width: 120px;
    text-align: center;
}

.checkBoxInput {
    width: 20px;
    height: 20px;
    margin-top: 0.5rem;
    accent-color: #4c51bf;
    cursor: pointer;
}

.sendCommand {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #4c51bf, #667eea);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(76, 81, 191, 0.3);
}

.sendCommand:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 81, 191, 0.4);
}

.sendCommand:active {
    transform: translateY(0);
}

.music-section {
    margin-bottom: 2rem;
}

.music-player {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
}

.music-header {
    background: linear-gradient(135deg, #4c51bf, #667eea);
    color: white;
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.music-header:hover {
    background: linear-gradient(135deg, #4338ca, #5b68db);
}

.music-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.arrow {
    transition: transform 0.3s ease;
    font-size: 1rem;
}

.music-player.expanded .arrow {
    transform: rotate(180deg);
}

.music-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: white;
}

.music-player.expanded .music-content {
    max-height: 800px;
    padding: 2rem;
}

.search-container {
    margin-bottom: 2rem;
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.search-input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
}

#search-query {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#search-query:focus {
    outline: none;
    border-color: #4c51bf;
    box-shadow: 0 0 0 3px rgba(76, 81, 191, 0.1);
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #4c51bf, #667eea);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 81, 191, 0.3);
    margin-bottom: 1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 81, 191, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #718096, #a0aec0);
    color: white;
    box-shadow: 0 4px 15px rgba(113, 128, 150, 0.3);
    margin-top: 1rem;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(113, 128, 150, 0.4);
}

.results-container {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.result-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f7fafc;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item:hover {
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    transform: translateX(4px);
}

.result-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.result-info {
    flex: 1;
    overflow: hidden;
}

.result-title {
    font-weight: 600;
    font-size: 1rem;
    color: #2d3748;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}

.result-artist {
    font-size: 0.875rem;
    color: #718096;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.play-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4c51bf, #667eea);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.result-item:hover .play-button {
    opacity: 1;
    transform: scale(1.1);
}

.no-results {
    text-align: center;
    padding: 3rem 2rem;
    color: #718096;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.now-playing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    border-radius: 12px;
    font-weight: 600;
    color: #4c51bf;
    min-height: 60px;
    margin-bottom: 1rem;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    background: white;
    padding: 2rem 3rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.loading-spinner i {
    font-size: 2rem;
    color: #4c51bf;
    margin-bottom: 1rem;
}

.loading-spinner p {
    font-weight: 600;
    color: #4a5568;
}

@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }

    .commands-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .commandContainer {
        padding: 1.5rem;
    }

    .header-content {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .music-player.expanded .music-content {
        padding: 1rem;
    }
}

.select2-container--default .select2-selection--single {
    height: 50px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 46px !important;
    padding-left: 1rem !important;
    color: #4a5568 !important;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #4c51bf !important;
    box-shadow: 0 0 0 3px rgba(76, 81, 191, 0.1) !important;
}

.select2-dropdown {
    border: 2px solid #4c51bf !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
}