body {
    background-color: #f8f9fa;
    padding: 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.container {
    max-width: 800px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    padding: 20px;
    margin: 15px auto;
}

.header {
    text-align: center;
    margin-bottom: 25px;
}

.docker-icon {
    font-size: 2.5rem;
    color: #2496ed;
    margin-bottom: 10px;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.text-muted {
    font-size: 0.9rem;
    color: #6c757d;
}

.input-area {
    margin-bottom: 25px;
}

.input-area label {
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

#batchImport {
    width: 100%;
    min-height: 120px;
    font-size: 0.9rem;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    resize: vertical;
}

#batchImport:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: flex-end;
}

.btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

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

.btn-success:hover {
    background-color: #157347;
    border-color: #146c43;
}

.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-secondary:hover {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-outline-primary {
    color: #0d6efd;
    border-color: #0d6efd;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.mirror-item {
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: all 0.3s;
    border: 1px solid #e9ecef;
}

.mirror-item:hover {
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

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

.mirror-info {
    flex: 1;
}

.mirror-url {
    font-weight: 500;
    word-break: break-all;
    color: #212529;
}

.test-image {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 5px;
}

.mirror-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    min-width: 70px;
    text-align: center;
}

.status-success {
    background-color: #d4edda;
    color: #155724;
}

.status-failure {
    background-color: #f8d7da;
    color: #721c24;
}

.status-error {
    background-color: #f8d7da;
    color: #721c24;
}

.status-testing {
    background-color: #fff3cd;
    color: #856404;
}

.status-pending {
    background-color: #e2e3e5;
    color: #383d41;
}

.mirror-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.last-tested {
    color: #6c757d;
}

.mirror-message {
    color: #6c757d;
    max-width: 70%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.action-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 10px;
}

.modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 15px 20px;
}

.modal-title {
    font-weight: 500;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 15px 20px;
}

.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.toast {
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

@media (max-width: 576px) {
    .container {
        padding: 15px;
        margin: 10px auto;
        width: calc(100% - 20px);
        box-sizing: border-box;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 8px;
    }
    
    #batchImport {
        min-height: 100px;
    }
    
    .mirror-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .mirror-actions {
        width: 100%;
        margin-top: 10px;
        justify-content: space-between;
    }
    
    .status-badge {
        min-width: 60px;
    }
    
    .mirror-message {
        max-width: 100%;
        white-space: normal;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .toast-container {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: 100%;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .mirror-content {
        flex-direction: row;
    }
    
    .mirror-actions {
        flex-shrink: 0;
    }
}
