body {
    background-color: #1a1a1a;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #1a1a1a;
}

.player-container {
    width: 320px;
    background: linear-gradient(to bottom, #0c1824, #1a2834);
    border: 1px solid #234;
    border-radius: 5px;
    color: #89a;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    background: #2a2a2a;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.player-header {
    display: flex;
    justify-content: space-between;
    padding: 5px 10px;
    background: linear-gradient(to bottom, #1c2834, #0c1824);
    border-bottom: 1px solid #234;
}

.player-main {
    padding: 10px;
}

.control-section {
    border-bottom: 1px solid #234;
    padding-bottom: 10px;
}

.progress-bar {
    height: 5px;
    background: #123;
    margin: 10px 0;
    cursor: pointer;
}

.progress {
    height: 100%;
    width: 30%;
    background: #0af;
}

.control-buttons {
    display: flex;
    justify-content: space-around;
    margin: 10px 0;
}

.ctrl-btn {
    background: transparent;
    border: none;
    color: #89a;
    font-size: 20px;
    cursor: pointer;
}

.ctrl-btn:hover {
    color: #0af;
}

.playlist {
    height: 400px;
    overflow-y: auto;
}

.playlist-header {
    padding: 5px;
    color: #89a;
    border-bottom: 1px solid #234;
}

.playlist-item {
    padding: 5px;
    cursor: pointer;
    border-bottom: 1px solid #123;
}

.playlist-item:hover {
    background: #234;
    color: #0af;
}

.playlist-item.active {
    background-color: #234;
    color: #0af;
    border-left: 2px solid #0af;
}

.playlist-item.selected {
    background-color: #345;
}

.player-footer {
    display: flex;
    justify-content: space-between;
    padding: 5px;
    background: linear-gradient(to bottom, #0c1824, #1c2834);
    border-top: 1px solid #234;
}

.footer-btn {
    background: transparent;
    border: none;
    color: #89a;
    font-size: 12px;
    cursor: pointer;
    padding: 5px 10px;
}

.footer-btn:hover {
    color: #0af;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: #123;
}

::-webkit-scrollbar-thumb {
    background: #345;
}

.eq-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(to bottom, #0c1824, #1a2834);
    border: 1px solid #234;
    padding: 20px;
    border-radius: 5px;
}

.eq-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.eq-slider {
    -webkit-appearance: slider-vertical;
    height: 100px;
}

.stream-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
}

.dialog-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(to bottom, #0c1824, #1a2834);
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #234;
}

.dialog-content h3 {
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.dialog-content input {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 8px;
    background: #234;
    border: 1px solid #345;
    color: #ffffff;
    font-size: 14px;
}

.dialog-content input::placeholder {
    color: #89a;
}

.dialog-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.dialog-buttons button {
    padding: 8px 20px;
    background: #234;
    border: none;
    color: #ffffff;
    cursor: pointer;
    margin: 0 5px;
    border-radius: 3px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.dialog-buttons button:hover {
    background: #345;
    color: #0af;
}

.track-details, .options-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    z-index: 1000;
}

.context-menu {
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    border-radius: 4px;
    padding: 5px 0;
    z-index: 1000;
}

.menu-item {
    padding: 8px 15px;
    cursor: pointer;
}

.menu-item:hover {
    background: #f0f0f0;
}

.now-playing {
    text-align: center;
    padding: 5px;
    background: #2c3e50;
    border-radius: 4px;
    margin: 5px;
}

.track-info {
    color: #ecf0f1;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.volume-control {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.volume-icon {
    margin-right: 8px;
    font-size: 1.2em;
    cursor: pointer;
}

#volume {
    width: 100px;
    height: 5px;
    -webkit-appearance: none;
    background: #4a5568;
    border-radius: 2px;
    outline: none;
}

#volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
}

#volume::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    border: none;
}

.add-options {
    position: fixed;
    background: linear-gradient(to bottom, #0c1824, #1a2834);
    border: 1px solid #234;
    border-radius: 5px;
    padding: 10px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 5px;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
}

.add-options button {
    background: #234;
    border: none;
    color: #ecf0f1;  /* Svetlija boja teksta */
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 3px;
    width: 150px;
    font-weight: 500;  /* Malo podebljana slova */
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);  /* Senka za bolju čitljivost */
    letter-spacing: 0.5px;  /* Malo razmaknutija slova */
}

.add-options button:hover {
    background: #345;
    color: #ffffff;  /* Potpuno bela na hover */
}

.info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.info-content {
    background: linear-gradient(to bottom, #0c1824, #1a2834);
    border: 1px solid #234;
    border-radius: 8px;
    padding: 20px;
    max-width: 500px;
    width: 90%;
    color: #89a;
    position: relative;
}

.info-content h3 {
    color: #0af;
    margin-bottom: 15px;
}

.info-content p {
    margin: 10px 0;
    line-height: 1.6;
}

.close-info {
    background: #234;
    border: none;
    color: #89a;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 15px;
}

.close-info:hover {
    background: #345;
    color: #0af;
}

#infoBtn {
    background: transparent;
    font-family: "Times New Roman", serif;
    font-style: italic;
    font-weight: bold;
    font-size: 18px;
}

#infoBtn::before {
    content: "i";
    color: #89a;
    background: transparent;
}

#infoBtn:hover::before {
    color: #0af;
}

.sort-menu {
    background: linear-gradient(to bottom, #0c1824, #1a2834);
    border: 1px solid #234;
    border-radius: 5px;
    padding: 5px 0;
    z-index: 1000;
    min-width: 150px;
    animation: slideUp 0.2s ease-out; /* Dodaj animaciju */
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sort-option {
    padding: 8px 15px;
    color: #89a;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-option:hover {
    background: #234;
    color: #0af;
}

.track-details {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(to bottom, #0c1824, #1a2834);
    border: 1px solid #234;
    border-radius: 8px;
    padding: 0;
    min-width: 300px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.details-header {
    background: #234;
    color: #0af;
    padding: 12px 15px;
    border-radius: 8px 8px 0 0;
    font-size: 1.1em;
    font-weight: bold;
}

.details-content {
    padding: 15px;
}

.detail-row {
    display: flex;
    margin: 8px 0;
    padding: 5px 0;
    border-bottom: 1px solid #234;
}

.detail-label {
    flex: 0 0 80px;
    color: #89a;
}

.detail-value {
    flex: 1;
    color: #fff;
}

.url-value {
    word-break: break-all;
    font-size: 0.9em;
    color: #0af;
}

.status-active {
    color: #0f0;
}

.status-inactive {
    color: #f66;
}

.details-footer {
    padding: 10px 15px;
    text-align: right;
    background: rgba(0,0,0,0.2);
    border-radius: 0 0 8px 8px;
}

.details-footer button {
    background: #234;
    color: #89a;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.details-footer button:hover {
    background: #345;
    color: #0af;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.delete-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.warning-content {
    background: linear-gradient(to bottom, #0c1824, #1a2834);
    border: 1px solid #f44336;
    border-radius: 8px;
    padding: 20px;
    max-width: 400px;
    width: 90%;
}

.warning-header {
    color: #f44336;
    font-size: 1.2em;
    margin-bottom: 15px;
    font-weight: bold;
}

.warning-message {
    color: #fff;
    margin: 15px 0;
}

.warning-item {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    padding: 8px;
    margin: 10px 0;
    color: #f44336;
    border-radius: 4px;
}

.warning-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.warning-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.warning-btn.confirm {
    background: #f44336;
    color: white;
}

.warning-btn.confirm:hover {
    background: #d32f2f;
}

.warning-btn.cancel {
    background: #234;
    color: #89a;
}

.warning-btn.cancel:hover {
    background: #345;
    color: #0af;
}

/* Poboljšanja: Toast notifikacije */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(to bottom, #0c1824, #1a2834);
    border: 1px solid #234;
    border-radius: 8px;
    padding: 12px 20px;
    color: #fff;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    min-width: 200px;
    text-align: center;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-success {
    border-color: #4caf50;
    background: linear-gradient(to bottom, #1a4c1f, #0c2810);
}

.toast-error {
    border-color: #f44336;
    background: linear-gradient(to bottom, #4c1a1a, #28100c);
}

.toast-info {
    border-color: #2196f3;
    background: linear-gradient(to bottom, #1a1f4c, #0c1028);
}

/* Poboljšanja: Active mode indikatori */
.sort-option.active-mode {
    background: #234;
    color: #0af;
    font-weight: bold;
}

.sort-option.active-mode:hover {
    background: #345;
}

/* Poboljšanja: Progress bar hover efekat */
.progress-bar:hover {
    background: #234;
}

.progress-bar:hover .progress {
    background: #0bf;
}

/* Poboljšanja: Bolji scrollbar za playlistu */
.playlist {
    scrollbar-width: thin;
    scrollbar-color: #345 #123;
}

.playlist::-webkit-scrollbar {
    width: 8px;
}

.playlist::-webkit-scrollbar-track {
    background: #123;
    border-radius: 4px;
}

.playlist::-webkit-scrollbar-thumb {
    background: #345;
    border-radius: 4px;
}

.playlist::-webkit-scrollbar-thumb:hover {
    background: #456;
}

/* Poboljšanja: Animacije za button hover */
.ctrl-btn, .footer-btn {
    transition: all 0.2s ease;
}

.ctrl-btn:hover, .footer-btn:hover {
    transform: scale(1.1);
}

/* Poboljšanja: Poboljšan timer prikaz */
.timer {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #0af;
}

/* Mobile Specific Styles */
@media screen and (max-width: 768px) {
    .player-container {
        width: 95%;
        margin: 10px auto;
    }

    .control-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .volume-control {
        width: 100%;
        margin-top: 10px;
    }

    .toast {
        min-width: 90%;
        left: 5%;
        transform: translateX(0) translateY(100px);
    }

    .toast.show {
        transform: translateX(0) translateY(0);
    }
}
