/* ========== TESTS DASHBOARD CSS ========== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 50%, #e0f2fe 100%);
    font-family: 'Roboto', sans-serif;
    color: #4a4a68;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Decorations (Stars/Blobs) */
.td-bg-decorations {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.td-blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.5;
    z-index: -1;
}

.td-blob-1 {
    width: 400px;
    height: 400px;
    background: #c4b5fd;
    top: -100px;
    left: -100px;
    border-radius: 50%;
}

.td-blob-2 {
    width: 500px;
    height: 500px;
    background: #bae6fd;
    bottom: -150px;
    right: -100px;
    border-radius: 50%;
}

.td-blob-3 {
    width: 300px;
    height: 300px;
    background: #fbcfe8;
    top: 40%;
    left: 40%;
    border-radius: 50%;
}

/* Header */
.td-header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    position: sticky;
    top: 0;
    z-index: 100;
}

.td-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.td-logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #4f46e5, #3b82f6);
    border-radius: 8px;
    display: inline-block;
}

.td-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
}

.td-breadcrumb a {
    color: #4f46e5;
    text-decoration: none;
}

.td-breadcrumb span {
    color: #1e1e2f;
}

.td-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.td-search-btn {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #5f6368;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.td-profile-btn {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
}

/* Layout */
.td-layout {
    display: flex;
    max-width: 1200px;
    margin: 32px auto;
    gap: 24px;
    padding: 0 16px;
}

.td-main {
    flex: 1;
}

.td-sidebar {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Hero Card */
.td-hero-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.td-hero-content {
    max-width: 60%;
    z-index: 2;
}

.td-hero-content h1 {
    font-size: 36px;
    color: #1e1e2f;
    margin-bottom: 12px;
}

.td-hero-content p {
    font-size: 18px;
    color: #4a4a68;
    margin-bottom: 24px;
}

.td-btn-create-large {
    display: inline-block;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.td-btn-create-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.td-btn-create-large span {
    font-size: 20px;
    margin-right: 4px;
}

.td-hero-illustration {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 350px;
    height: 100%;
    background: url('Raimlar/test_illustration.png') no-repeat center right;
    background-size: cover;
    z-index: 1;
    border-radius: 0 24px 24px 0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 30%);
    mask-image: linear-gradient(to right, transparent, black 30%);
}

/* Cards Grid */
.td-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

/* Test Card */
.td-card {
    border-radius: 16px;
    padding: 20px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
}

.td-card:hover {
    transform: translateY(-4px);
}

.td-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.td-card-content {
    position: relative;
    z-index: 2;
    pointer-events: none; /* Let card's onclick handle clicks if they hit the content general area */
}

.td-card-content * {
    pointer-events: auto; /* re-enable for buttons and text selection */
}

.td-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 500;
}

.td-card .td-card-meta {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 12px;
}

.td-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    margin-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 12px;
}

.td-card-date {
    font-size: 12px;
    opacity: 0.8;
}

.td-btn-edit {
    background: rgba(255, 255, 255, 0.9);
    color: #1e1e2f;
    border: none;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}

.td-btn-edit:hover {
    background: #fff;
}

/* Theme Colors for Cards */
.theme-purple {
    background: linear-gradient(135deg, #a855f7, #6366f1);
}

.theme-blue {
    background: linear-gradient(135deg, #3b82f6, #2dd4bf);
}

.theme-orange {
    background: linear-gradient(135deg, #f97316, #f59e0b);
}

.theme-green {
    background: linear-gradient(135deg, #10b981, #34d399);
}

/* Sidebar Elements */
.td-btn-create-block {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
    padding: 16px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.td-btn-create-block span {
    font-size: 20px;
    margin-right: 8px;
}

.td-search-box {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 12px 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.td-search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 14px;
    color: #4a4a68;
}

.td-stats-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.td-stats-card h3 {
    font-size: 18px;
    color: #1e1e2f;
    margin-bottom: 16px;
    font-weight: 500;
}

.td-stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: #4a4a68;
}

.td-stat-row strong {
    color: #1e1e2f;
}

.td-recent-list {
    margin-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 16px;
}

.td-recent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    text-decoration: none;
    color: #4a4a68;
    font-size: 14px;
}

.td-recent-item:hover {
    color: #1a73e8;
}

.td-recent-item-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.td-recent-item-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #6366f1;
    border-radius: 50%;
}

.td-empty-state {
    display: none;
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    margin-top: 24px;
}