/* Custom Premium Stylesheet for SSO Dashboard */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --bg-primary: #0b0f19;
    --bg-secondary: #111827;
    --bg-glass: rgba(17, 24, 39, 0.7);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --accent-blue: #3b82f6;
    --accent-blue-hover: #2563eb;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-warning: #f59e0b;
}

body {
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.1) 0px, transparent 50%);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Glassmorphism Card style */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    box-shadow: 0 12px 40px 0 rgba(59, 130, 246, 0.15);
}

/* Card Header custom */
.card-header-custom {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-glass);
    padding: 1.25rem 1.5rem;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

/* Custom Input Field */
.form-control-custom {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control-custom:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);
    color: var(--text-primary);
    outline: none;
}

.form-control-custom::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Buttons custom */
.btn-primary-custom {
    background-color: var(--accent-blue);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
}

.btn-primary-custom:hover {
    background-color: var(--accent-blue-hover);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.btn-primary-custom:active {
    transform: scale(0.98);
}

.btn-secondary-custom {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    transition: background-color 0.2s;
}

.btn-secondary-custom:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Glowing Indicator Dots */
.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    top: -1px;
}

.status-connected {
    background-color: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
}

.status-pending {
    background-color: var(--accent-warning);
    box-shadow: 0 0 8px var(--accent-warning);
    animation: pulse 1.5s infinite;
}

.status-failed {
    background-color: var(--accent-red);
    box-shadow: 0 0 8px var(--accent-red);
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(0.9);
        opacity: 0.6;
    }
}

/* Table Design */
.table-custom {
    color: var(--text-primary);
    vertical-align: middle;
}

.table-custom th {
    background-color: rgba(255, 255, 255, 0.02) !important;
    border-bottom: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    padding: 1rem 1.5rem;
}

.table-custom td {
    background-color: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.25rem 1.5rem;
}

/* Nav styles */
.navbar-custom {
    background-color: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
}

.nav-link-custom {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link-custom:hover {
    color: var(--text-primary);
}

/* Typography utilities */
.text-muted-custom {
    color: var(--text-secondary);
}

/* Layout helpers */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 450px;
}

.dashboard-container {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

/* Key display area */
.key-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px dashed var(--border-glass);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.9rem;
    word-break: break-all;
    user-select: all;
    color: #60a5fa;
}
