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

body {
    font-family: Arial, sans-serif;
    background-color: #1a472a;
    color: #fff;
    padding: 20px;
}

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

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #ffd700;
}

h2, h3 {
    color: #ffd700;
    margin-bottom: 15px;
}

/* Strategy Selector */
.strategy-selector {
    background-color: #0d2818;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.selector-group {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.selector-group label {
    font-weight: bold;
    color: #ffd700;
}

#strategySelect {
    flex: 1;
    min-width: 250px;
    padding: 10px;
    border-radius: 5px;
    border: 2px solid #ffd700;
    background-color: #2d5a3d;
    color: #fff;
    font-size: 1em;
}

/* Strategy Editor */
.strategy-editor {
    background-color: #153525;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Basic Info */
.basic-info {
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #ffd700;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 2px solid #ffd700;
    background-color: #2d5a3d;
    color: #fff;
    font-size: 1em;
}

.form-group textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 2px solid #ffd700;
    background-color: #2d5a3d;
    color: #fff;
    font-size: 1em;
    font-family: Arial, sans-serif;
    resize: vertical;
}

.martingale-info {
    margin-top: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background-color: rgba(45, 90, 61, 0.5);
    border-left: 3px solid #ffd700;
    border-radius: 4px;
}

.martingale-info span {
    color: #FFFFFF;
    font-size: 0.95em;
    font-style: italic;
}

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

.url-input-group {
    display: flex;
    gap: 10px;
}

.url-input-group input {
    flex: 1;
}

/* Current Level Display */
.current-level-display {
    background-color: #2d5a3d;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 3px solid #ffd700;
}

.current-level-display h3 {
    margin: 0 0 15px 0;
    text-align: center;
    font-size: 1.5em;
}

.current-level-display h3 span {
    color: #00ff00;
    font-size: 1.3em;
}

.level-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Levels Section */
.levels-section {
    margin-bottom: 25px;
}

.levels-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.levels-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.level-item {
    background-color: #2d5a3d;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #ffd700;
    transition: all 0.3s;
}

.level-item.active {
    border-color: #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    background-color: #3d6a4d;
}

.level-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.level-title {
    font-weight: bold;
    color: #ffd700;
    font-size: 1.1em;
}

.level-item.active .level-title {
    color: #00ff00;
}

.level-image-container {
    margin: 10px 0;
    padding: 20px;
    border: 2px dashed #ffd700;
    border-radius: 5px;
    text-align: center;
    background-color: #1a472a;
    cursor: pointer;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
}

.level-image-container:hover {
    border-color: #00ff00;
    background-color: #0d2818;
}

.level-image-container:focus {
    outline: none;
    border-color: #00ff00;
    border-style: solid;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.level-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border: 1px solid #ffd700;
}

.paste-hint {
    color: #999;
    font-style: italic;
    font-size: 0.9em;
}

.btn-remove-image {
    background-color: #c41e3a;
    border-color: #c41e3a;
    padding: 5px 12px;
    font-size: 0.9em;
}

.btn-remove-image:hover {
    background-color: #d41e3a;
}

.level-content {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border-radius: 5px;
    border: 2px solid #ffd700;
    background-color: #1a472a;
    color: #fff;
    font-size: 1em;
    font-family: Arial, sans-serif;
    resize: vertical;
}

.level-item.active .level-content {
    border-color: #00ff00;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #2d5a3d;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid #ffd700;
    font-size: 1em;
}

.btn:hover {
    background-color: #3d6a4d;
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: #2d5a3d;
}

.btn-primary:hover {
    background-color: #3d6a4d;
}

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

.btn-success:hover {
    background-color: #218838;
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

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

.btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
}

.btn-save-inline {
    padding: 4px 10px;
    font-size: 0.85em;
    margin-left: 10px;
    vertical-align: middle;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.2em;
}

.btn-remove {
    background-color: #c41e3a;
    padding: 5px 12px;
    font-size: 0.9em;
}

.btn-remove:hover {
    background-color: #d41e3a;
}

.btn-save-level {
    background-color: transparent;
    border: none;
    padding: 2px 5px;
    font-size: 1em;
    cursor: pointer;
    margin-left: 5px;
}

.btn-save-level:hover {
    transform: scale(1.2);
}

.btn-level-win {
    background-color: #28a745;
    border-color: #28a745;
    padding: 4px 10px;
    font-size: 0.85em;
    margin-left: 10px;
}

.btn-level-win:hover {
    background-color: #218838;
}

.btn-level-loss {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
    padding: 4px 10px;
    font-size: 0.85em;
    margin-left: 5px;
}

.btn-level-loss:hover {
    background-color: #e0a800;
}

.level-bet-container {
    margin-left: 15px;
    color: #ffd700;
}

.level-bet-input {
    width: 80px;
    padding: 2px 5px;
    border: 1px solid #ffd700;
    background-color: #0a1f12;
    color: #fff;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Notification Container */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.notification {
    background-color: #0d2818;
    border: 2px solid #ffd700;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification.success {
    border-color: #00ff00;
}

.notification.error {
    border-color: #ff0000;
}

.notification-icon {
    font-size: 1.5em;
}

.notification-message {
    flex: 1;
    color: #fff;
    font-weight: bold;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.notification.fade-out {
    animation: slideOut 0.3s ease-out forwards;
}

/* Timer Section */
.parameters {
    background-color: #0d2818;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.param-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.param-group label {
    font-weight: bold;
    color: #ffd700;
}

.param-group input[type="number"] {
    width: 80px;
    padding: 5px;
    border: 1px solid #ffd700;
    background-color: #0a1f12;
    color: #fff;
    border-radius: 4px;
}

#timeRemaining {
    color: #ffd700;
    font-weight: bold;
    font-size: 1.1em;
}

/* Add Level Section */
.add-level-section {
    text-align: center;
    padding: 10px 20px;
    margin-bottom: 10px;
}

/* Save Section */
.save-section {
    text-align: center;
    padding: 20px;
}

.save-status {
    display: inline-block;
    margin-left: 15px;
    font-weight: bold;
    font-size: 1.1em;
}

.save-status.success {
    color: #00ff00;
}

.save-status.error {
    color: #ff0000;
}

/* Navigation */
.navigation {
    text-align: center;
    margin-top: 20px;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0d2818;
}

::-webkit-scrollbar-thumb {
    background: #ffd700;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ffed4e;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
}

.image-modal-content {
    margin: auto;
    display: block;
    max-width: 95%;
    max-height: 95vh;
    border: 3px solid #ffd700;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #ffd700;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.image-modal-close:hover,
.image-modal-close:focus {
    color: #00ff00;
    text-decoration: none;
    cursor: pointer;
}

.level-image {
    cursor: pointer;
    transition: transform 0.2s;
}

.level-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .selector-group {
        flex-direction: column;
        align-items: stretch;
    }

    #strategySelect {
        width: 100%;
    }

    .level-controls {
        flex-direction: column;
    }

    .level-controls .btn {
        width: 100%;
    }

    .image-modal-content {
        max-width: 98%;
        max-height: 90vh;
    }

    .image-modal-close {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }
}
