/* 
==========================================
ZEDTRANSLATE - PREMIUM MINIMAL DASHBOARD
Harmonized with Global Design System
==========================================
*/

/* Reset & Theme Integration */
body {
    background-color: transparent;
    color: var(--text-light);
    font-family: var(--font-primary);
    line-height: 1.6;
}

.page-wrapper {
    background: var(--primary-dark);
}

/* Main Portal Layout */
.portal-layout {
    display: flex;
    min-height: calc(100vh - 80px);
}

.portal-main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
    animation: fadeInUp 0.6s ease-out;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.project-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 217, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.project-card h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--white);
}

.project-id-tag {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    padding: 4px 8px;
    border-radius: 4px;
}

.portal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.portal-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Usage Stats */
.usage-pulse {
    width: 280px;
}

.pulse-stats {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.progress-bar-bg {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Data Grid (Tables) */
.keys-table-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--spacing-xl);
    backdrop-filter: blur(10px);
}

.minimal-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.minimal-table th {
    font-weight: 600;
    color: var(--electric-cyan);
    background: rgba(255, 255, 255, 0.02);
    padding: 16px 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.minimal-table td {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-light);
    font-size: 0.95rem;
}

.minimal-table tr:last-child td {
    border-bottom: none;
}

.minimal-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

.masked-key {
    background: rgba(0, 217, 255, 0.05);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    color: var(--electric-cyan);
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 217, 255, 0.1);
}

/* Forms & UI Blocks */
.create-key-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
}

.create-key-box h3 {
    margin-top: 0;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--white);
}

.form-group-inline {
    display: flex;
    gap: 16px;
}

.form-group-inline input {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding: 12px 0;
    color: var(--white);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group-inline input:focus {
    outline: none;
    border-bottom-color: var(--electric-cyan);
    background: rgba(255, 255, 255, 0.05);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: var(--primary-light);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    max-width: 480px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 0.4s ease-out;
}

.copy-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 217, 255, 0.05);
    padding: 20px;
    border: 1px dashed var(--electric-cyan);
    border-radius: var(--radius-md);
    margin: 24px 0;
}

.copy-box code {
    flex: 1;
    color: var(--white);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 1px;
}

.warning-text {
    color: var(--zambia-orange);
    font-size: 0.85rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Component Overrides */
.alert-info {
    padding: 16px 20px;
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--electric-cyan);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #ff4d4d;
    border-color: rgba(220, 38, 38, 0.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}