/* Reset si baza */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-gray: #f9fafb;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: var(--text-dark);
}

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

/* Buton Indietro */
.back-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: white;
    box-shadow: var(--shadow-lg);
    transform: translateX(-5px);
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Card principal */
.main-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 20px;
}

/* Buton cerere proba */
.request-trial-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow);
}

.request-trial-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.request-trial-btn:disabled {
    background: var(--border-color);
    cursor: not-allowed;
    transform: none;
}

/* Loading spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Rezultat proba */
.trial-result {
    display: none;
    margin-top: 30px;
}

.trial-result.show {
    display: block;
    animation: slideDown 0.4s ease-out;
}

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

.credentials-box {
    background: var(--bg-gray);
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
}

.credential-item {
    margin-bottom: 15px;
}

.credential-item:last-child {
    margin-bottom: 0;
}

.credential-label {
    display: block;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 700;
}

.credential-value-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.credential-value {
    flex: 1;
    padding: 18px 20px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-dark);
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.copy-btn {
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: var(--primary-dark);
}

.copy-btn.copied {
    background: var(--success-color);
}

.expiry-notice {
    background: #fef3c7;
    border-left: 4px solid var(--warning-color);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 1.2rem;
}

.expiry-notice strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.3rem;
}

/* Alert messages */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
    animation: slideDown 0.4s ease-out;
}

.alert-error {
    background: #fee2e2;
    border-left: 4px solid var(--error-color);
    color: #991b1b;
}

.alert-warning {
    background: #fef3c7;
    border-left: 4px solid var(--warning-color);
    color: #92400e;
    font-size: 1.3rem;
    font-weight: 700;
    padding: 25px;
    text-align: center;
}

.alert-success {
    background: #d1fae5;
    border-left: 4px solid var(--success-color);
    color: #065f46;
    font-size: 1.3rem;
    font-weight: 700;
    padding: 25px;
    text-align: center;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: white;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .main-card {
        padding: 25px;
    }
    
    .device-tabs {
        flex-wrap: wrap;
    }
    
    .credential-value-container {
        flex-direction: column;
    }
    
    .copy-btn {
        width: 100%;
    }
    
    .app-links {
        flex-direction: column;
    }
}


