/**
 * RMA Sistema - Frontend Styles
 * Kliento sąsajos stiliai
 */

/* Bendri konteinerio stiliai */
.rma-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Antraštė */
.rma-header {
    text-align: center;
    margin-bottom: 40px;
}

.rma-header h1 {
    margin: 0 0 15px 0;
    font-size: 32px;
    color: #23282d;
}

.rma-status-badge {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Turinys */
.rma-content {
    display: grid;
    gap: 30px;
}

/* Sekcijų stiliai */
.rma-quote-section,
.rma-info-section,
.rma-files-section,
.rma-history-section {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.rma-quote-section h2,
.rma-info-section h2,
.rma-files-section h2,
.rma-history-section h2 {
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #0073aa;
    font-size: 24px;
    color: #23282d;
}

/* Kainos pasiūlymo sekcija */
.rma-quote-section {
    border: 2px solid #0073aa;
}

.rma-quote-details {
    margin-bottom: 25px;
}

.rma-quote-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin-bottom: 15px;
    background: #f0f8ff;
    border-radius: 8px;
}

.rma-quote-price .rma-label {
    font-size: 18px;
    font-weight: 600;
    color: #666;
}

.rma-quote-price .rma-value {
    font-size: 32px;
    font-weight: bold;
    color: #0073aa;
}

.rma-quote-description {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.rma-quote-description .rma-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #666;
}

.rma-quote-description .rma-value {
    line-height: 1.6;
    color: #23282d;
}

.rma-quote-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 25px 0;
}

.rma-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    text-decoration: none;
}

.rma-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 20px;
}

.rma-btn-approve {
    background: #46b450;
    color: #fff;
}

.rma-btn-approve:hover {
    background: #3a9e43;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(70, 180, 80, 0.3);
}

.rma-btn-reject {
    background: #dc3232;
    color: #fff;
}

.rma-btn-reject:hover {
    background: #c02a2a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 50, 50, 0.3);
}

.rma-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.rma-quote-note {
    padding: 15px;
    background: #fff9e6;
    border-left: 4px solid #ffb900;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.rma-quote-note .dashicons {
    color: #ffb900;
    vertical-align: middle;
    margin-right: 5px;
}

/* Atsakyta kainos pasiūlymui */
.rma-quote-responded {
    border-color: #ccc;
}

.rma-response-status {
    text-align: center;
    padding: 30px;
}

.rma-response-status .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
}

.rma-response-status strong {
    display: block;
    font-size: 20px;
    color: #23282d;
}

/* Informacijos sekcija */
.rma-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.rma-info-item {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
}

.rma-info-item.rma-full-width {
    grid-column: 1 / -1;
}

.rma-info-item .rma-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rma-info-item .rma-value {
    font-size: 16px;
    color: #23282d;
    font-weight: 500;
}

.rma-notes {
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Failų sekcija */
.rma-files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.rma-file-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.rma-file-card:hover {
    border-color: #0073aa;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.15);
    transform: translateY(-2px);
}

.rma-file-preview {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.rma-file-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.rma-file-card:hover .rma-file-preview img {
    transform: scale(1.05);
}

.rma-file-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: #f5f5f5;
    text-decoration: none;
    color: #666;
    transition: all 0.3s;
}

.rma-file-card:hover .rma-file-icon {
    background: #e8f4f8;
    color: #0073aa;
}

.rma-file-icon .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
}

.rma-file-name {
    padding: 10px;
    text-align: center;
    font-size: 13px;
    word-break: break-word;
}

/* Istorijos sekcija */
.rma-timeline {
    position: relative;
    padding-left: 40px;
}

.rma-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #0073aa, #005a87);
}

.rma-timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.rma-timeline-item:last-child {
    border-bottom: none;
}

.rma-timeline-marker {
    position: absolute;
    left: -33px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0073aa;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #0073aa;
    z-index: 1;
}

.rma-timeline-content {
    padding-left: 10px;
}

.rma-timeline-message {
    font-size: 16px;
    color: #23282d;
    margin-bottom: 8px;
    line-height: 1.6;
}

.rma-timeline-date {
    font-size: 13px;
    color: #999;
}

/* Klaidos pranešimas */
.rma-error {
    text-align: center;
    padding: 60px 20px;
}

.rma-error .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: #dc3232;
    margin-bottom: 20px;
}

.rma-error h2 {
    margin: 20px 0;
    color: #23282d;
}

.rma-error p {
    font-size: 16px;
    color: #666;
    margin: 10px 0;
}

/* Loading animacija */
@keyframes rma-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.rma-loading {
    animation: rma-pulse 1.5s ease-in-out infinite;
}

/* Responsive dizainas */
@media screen and (max-width: 768px) {
    .rma-container {
        padding: 20px 15px;
    }

    .rma-header h1 {
        font-size: 24px;
    }

    .rma-status-badge {
        font-size: 14px;
        padding: 8px 20px;
    }

    .rma-quote-section,
    .rma-info-section,
    .rma-files-section,
    .rma-history-section {
        padding: 20px;
    }

    .rma-quote-section h2,
    .rma-info-section h2,
    .rma-files-section h2,
    .rma-history-section h2 {
        font-size: 20px;
    }

    .rma-quote-price {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .rma-quote-price .rma-value {
        font-size: 24px;
    }

    .rma-quote-actions {
        flex-direction: column;
    }

    .rma-btn {
        width: 100%;
        justify-content: center;
    }

    .rma-info-grid {
        grid-template-columns: 1fr;
    }

    .rma-files-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .rma-timeline {
        padding-left: 30px;
    }

    .rma-timeline::before {
        left: 10px;
    }

    .rma-timeline-marker {
        left: -28px;
    }
}

@media print {
    .rma-quote-actions,
    .rma-btn {
        display: none;
    }
}
