/* TRIAL MANAGEMENT SYSTEM - STYLES */
/* Trial yönetim modal ve butonları için stiller */

/* Trial Management Container */
.trial-management-container {
    padding: 20px;
    background: linear-gradient(135deg, #0f172a 0%, #1a1a2e 100%);
    border-radius: 12px;
    /* Scroll modal'dan kaldırıldı, sadece container scroll eder */
}

/* Trial Section */
.trial-section {
    margin-bottom: 25px;
}

.test-mode-section {
    padding: 20px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
}

/* Trial Card */
.trial-card {
    background: linear-gradient(135deg, #1e1e2f 0%, #252545 100%);
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.trial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: #4facfe;
}

/* Trial Header */
.trial-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #334155;
}

.trial-status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Trial Details */
.trial-details {
    margin-bottom: 15px;
}

.trial-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.trial-info-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.trial-info-row span:first-child {
    color: #94a3b8;
}

.trial-info-row span:last-child {
    font-weight: 600;
    color: #e2e8f0;
}

/* Last action row - multi-line support */
.trial-info-row span[id^="last-action-"] {
    display: block;
    max-width: 100%;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.5;
}

/* Trial Actions */
.trial-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.trial-actions button {
    flex: 1;
    min-width: 100px;
    font-size: 0.85rem;
    padding: 8px 12px;
}

/* Şirket Kartında Trial Butonu */
.company-trial-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.company-trial-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

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

/* Buton Renk Varyasyonları */
.btn-sm {
    padding: 6px 10px;
    font-size: 0.8rem;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    border: none;
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    border: none;
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Modal Size Override */
.trial-management-modal .modal-content {
    max-width: 900px;
    width: 90%;
}

/* Trial Modal Scroll Fix - Sadece content scroll eder */
.trial-management-modal .medyajans-modal-content {
    max-height: 75vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.trial-management-modal .trial-management-container {
    max-height: none;
    overflow: visible;
}

/* Responsive */
@media (max-width: 768px) {
    .trial-management-container {
        padding: 15px;
        max-height: 60vh;
    }

    .trial-card {
        padding: 15px;
    }

    .trial-header {
        flex-direction: column;
        gap: 10px;
    }

    .trial-actions {
        flex-direction: column;
    }

    .trial-actions button {
        width: 100%;
        min-width: auto;
    }

    .test-mode-section {
        padding: 15px;
    }

    .test-mode-section button {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .trial-management-container {
        padding: 10px;
    }

    .trial-card {
        padding: 12px;
    }

    .trial-info-row {
        font-size: 0.85rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .company-trial-btn {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}

/* Scrollbar Styling */
.trial-management-container::-webkit-scrollbar {
    width: 8px;
}

.trial-management-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.trial-management-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 4px;
}

.trial-management-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
}

/* Empty State */
.trial-empty-state {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #1e1e2f 0%, #252545 100%);
    border-radius: 10px;
}

.trial-empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.trial-card {
    animation: fadeIn 0.3s ease;
}

/* Test Mode Active Indicator */
.test-mode-active-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
