/* Syncly Integration Styles */

/* General Styles */
.syncly-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #333;
}

.syncly-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.syncly-col {
    padding: 0 15px;
    flex: 1;
}

.syncly-col-2 {
    flex: 0 0 50%;
}

.syncly-col-3 {
    flex: 0 0 33.333%;
}

.syncly-col-4 {
    flex: 0 0 25%;
}

/* Package Selection */
.syncly-package-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.package-option {
    border: 2px solid #e1e1e1;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.package-option:hover {
    border-color: #4a90e2;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.1);
    transform: translateY(-2px);
}

.package-option.selected {
    border-color: #4a90e2;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
}

.package-option.popular::before {
    content: "Najpopularniejszy";
    position: absolute;
    top: 15px;
    right: -30px;
    background: #ff6b6b;
    color: white;
    padding: 5px 35px;
    font-size: 12px;
    font-weight: bold;
    transform: rotate(25deg);
    z-index: 1;
}

.package-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.package-price {
    font-size: 36px;
    font-weight: bold;
    color: #4a90e2;
    margin-bottom: 5px;
}

.package-option.selected .package-price {
    color: white;
}

.package-price .currency {
    font-size: 18px;
    vertical-align: top;
}

.package-duration {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.package-option.selected .package-duration {
    color: rgba(255, 255, 255, 0.8);
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.package-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.package-option.selected .package-features li {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.package-features li:last-child {
    border-bottom: none;
}

.package-features .feature-icon {
    color: #4a90e2;
    margin-right: 8px;
}

.package-option.selected .package-features .feature-icon {
    color: white;
}

/* Migration Forms */
.syncly-migration-form {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0;
}

.syncly-form-section {
    margin-bottom: 30px;
}

.syncly-form-section h3 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #4a90e2;
    padding-bottom: 10px;
}

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

.syncly-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.syncly-form-group input,
.syncly-form-group select,
.syncly-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.syncly-form-group input:focus,
.syncly-form-group select:focus,
.syncly-form-group textarea:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.syncly-form-group .help-text {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.provider-fields {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
}

.provider-fields.active {
    display: block;
}

/* Buttons */
.syncly-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.syncly-btn-primary {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
}

.syncly-btn-primary:hover {
    background: linear-gradient(135deg, #357abd 0%, #2968a3 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.syncly-btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.syncly-btn-secondary:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.syncly-btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20833a 100%);
    color: white;
}

.syncly-btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.syncly-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Progress Bars */
.syncly-progress {
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    height: 20px;
    margin: 15px 0;
}

.syncly-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4a90e2 0%, #357abd 100%);
    transition: width 0.5s ease;
    border-radius: 10px;
}

.syncly-progress-text {
    text-align: center;
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}

/* Status Indicators */
.syncly-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.syncly-status.pending {
    background: #ffeaa7;
    color: #d68910;
}

.syncly-status.running {
    background: #74b9ff;
    color: #0984e3;
}

.syncly-status.completed {
    background: #55efc4;
    color: #00b894;
}

.syncly-status.failed {
    background: #fd7675;
    color: #e17055;
}

/* Migration Dashboard */
.syncly-dashboard {
    margin: 20px 0;
}

.syncly-card {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.syncly-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.syncly-card-title {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.syncly-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.syncly-stat {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.syncly-stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #4a90e2;
    display: block;
}

.syncly-stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Tables */
.syncly-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.syncly-table th,
.syncly-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e1e1e1;
}

.syncly-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.syncly-table tbody tr:hover {
    background: #f8f9fa;
}

/* Notifications */
.syncly-notification {
    position: fixed;
    top: 30px;
    right: 30px;
    padding: 15px 20px;
    border-radius: 6px;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: none;
}

.syncly-notification.success {
    background: #55efc4;
    color: #00b894;
    border-left: 4px solid #00b894;
}

.syncly-notification.error {
    background: #fd7675;
    color: #e17055;
    border-left: 4px solid #e17055;
}

.syncly-notification.warning {
    background: #ffeaa7;
    color: #d68910;
    border-left: 4px solid #d68910;
}

/* Connection Status */
.connection-status {
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;
    font-weight: 600;
}

.connection-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.connection-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f1b0b7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .syncly-package-options {
        grid-template-columns: 1fr;
    }
    
    .syncly-row {
        flex-direction: column;
    }
    
    .syncly-col-2,
    .syncly-col-3,
    .syncly-col-4 {
        flex: 1;
    }
    
    .syncly-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .syncly-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .syncly-stats {
        grid-template-columns: 1fr;
    }
    
    .syncly-card {
        padding: 15px;
    }
    
    .syncly-form-section {
        margin-bottom: 20px;
    }
    
    .syncly-table {
        font-size: 14px;
    }
    
    .syncly-table th,
    .syncly-table td {
        padding: 8px;
    }
}

/* Loading States */
.syncly-loading {
    position: relative;
}

.syncly-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4a90e2;
    border-radius: 50%;
    animation: syncly-spin 1s linear infinite;
}

@keyframes syncly-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animations */
.syncly-fade-in {
    animation: syncly-fadeIn 0.5s ease-in;
}

@keyframes syncly-fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.syncly-slide-up {
    animation: syncly-slideUp 0.3s ease-out;
}

@keyframes syncly-slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* Tooltips */
.syncly-tooltip {
    position: relative;
    cursor: help;
}

.syncly-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.syncly-tooltip:hover::after {
    opacity: 1;
}

/* Custom Scrollbar */
.syncly-scrollable::-webkit-scrollbar {
    width: 8px;
}

.syncly-scrollable::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.syncly-scrollable::-webkit-scrollbar-thumb {
    background: #4a90e2;
    border-radius: 4px;
}

.syncly-scrollable::-webkit-scrollbar-thumb:hover {
    background: #357abd;
} 