:root {
    --tc-orange: #f5a623;
    --tc-orange-light: rgba(245, 166, 35, 0.1);
    --tc-dark: #1a1a1a;
    --tc-bg: #f8f9fc;
    --tc-white: #ffffff;
    --tc-gray: #e9ecef;
    --tc-sidebar-width: 220px;
    --tc-header-height: 56px;
    --tc-glass: rgba(255, 255, 255, 0.7);
    --tc-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

body {
    background-color: var(--tc-bg);
    font-family: 'Inter', -apple-system, sans-serif;
    color: #2d3436;
    overflow-x: hidden;
    font-size: 14px;
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

/* --- Layout Structure --- */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--tc-sidebar-width);
    background-color: #0f172a;
    color: white;
    position: fixed;
    height: 100vh;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.main-content {
    flex: 1;
    margin-left: var(--tc-sidebar-width);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding-bottom: 30px;
    background: #f8fafc;
    min-height: 100vh;
}

/* --- Sidebar Menu --- */
.sidebar-logo {
    padding: 30px 24px;
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    letter-spacing: -1px;
}

.sidebar-logo span {
    color: var(--tc-orange);
}

.sidebar-menu {
    padding: 10px 12px;
    list-style: none;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.sidebar-menu a i {
    width: 24px;
    font-size: 1.1rem;
    margin-right: 12px;
    opacity: 0.7;
}

.sidebar-menu a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
}

.sidebar-menu li.active a {
    background: linear-gradient(135deg, var(--tc-orange) 0%, #ff8c00 100%);
    color: white;
    box-shadow: 0 10px 20px rgba(245, 166, 35, 0.2);
}

.sidebar-menu li.active a i {
    opacity: 1;
}

/* --- Top Header --- */
.top-header {
    height: var(--tc-header-height);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 900;
}

.header-search {
    position: relative;
}

.header-search input {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 10px 16px 10px 44px !important;
    width: 100%;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 0.9rem;
    z-index: 5;
}

.header-search input:focus {
    background: white;
    border-color: var(--tc-orange);
    box-shadow: 0 10px 20px rgba(245, 166, 35, 0.08);
    outline: none;
}

/* --- Cards & UI Elements --- */
.glass-card {
    background: white;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

.stats-card {
    padding: 24px;
    position: relative;
    color: white;
}

.stats-card h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0;
    margin-top: 8px;
}

.stats-card i {
    position: absolute;
    right: 20px;
    bottom: 20px;
    font-size: 3.5rem;
    opacity: 0.15;
}

.bg-gradient-orange { 
    background: linear-gradient(135deg, var(--tc-orange) 0%, #ff8c00 100%); 
    box-shadow: 0 15px 30px rgba(245, 166, 35, 0.2);
}
.bg-gradient-dark { 
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%); 
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}
.bg-gradient-blue { 
    background: linear-gradient(135deg, #0984e3 0%, #74b9ff 100%); 
    box-shadow: 0 15px 30px rgba(9, 132, 227, 0.2);
}
.bg-gradient-green { 
    background: linear-gradient(135deg, #00b894 0%, #55efc4 100%); 
    box-shadow: 0 15px 30px rgba(0, 184, 148, 0.2);
}

/* --- Table Design --- */
.premium-table {
    width: 100%;
    font-size: 0.9rem;
}

.premium-table thead th {
    background: #f8f9fa !important;
    border-bottom: 1px solid var(--tc-gray) !important;
    padding: 10px 16px !important;
    color: #495057 !important;
    font-weight: 600 !important;
    text-transform: none !important;
    font-size: 0.8rem !important;
}

.premium-table tbody tr {
    transition: background 0.2s;
}

.premium-table tbody tr:hover {
    background-color: #fcfcfc;
}

.premium-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f3f5;
}

.action-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 2px;
    transition: all 0.2s;
    font-size: 0.8rem;
    text-decoration: none;
}

.btn-view { background-color: #f1f3f5; color: #495057; }
.btn-view:hover { background-color: #e9ecef; }
.btn-download { background-color: #e0f2fe; color: #0984e3; }
.btn-download:hover { background-color: #0984e3; color: white; }
.btn-delete { background-color: #ffeef0; color: #d63031; }
.btn-delete:hover { background-color: #d63031; color: white; }

/* --- Landing Page Styling --- */
.landing-page {
    background-color: var(--tc-bg);
    position: relative;
    overflow-x: hidden;
}

/* Background Effects */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.08) 0%, rgba(245, 166, 35, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(60px);
}

.bg-glow-1 { top: -200px; right: -100px; }
.bg-glow-2 { bottom: -100px; left: -200px; }

/* Navbar Premium */
.navbar-premium {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 12px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--tc-dark) !important;
}

.navbar-brand span {
    color: var(--tc-orange);
}

/* Hero Section */
.hero-section {
    padding: 100px 0 80px;
    position: relative;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.hero-content p {
    font-size: 1.1rem;
    color: #636e72;
    margin-bottom: 35px;
    max-width: 500px;
}

/* Mockup UI - Ultra Premium 3D Effects */
.mockup-container {
    position: relative;
    perspective: 2500px;
    padding: 40px;
    margin-right: -80px; /* Floating outside effect */
}

.mockup-wrapper {
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-22deg) rotateX(12deg);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    animation: floatingPerspective 8s ease-in-out infinite;
}

.mockup-container:hover .mockup-wrapper {
    transform: rotateY(-8deg) rotateX(4deg) scale(1.05);
}

.mockup-img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 
        -30px 40px 80px rgba(0,0,0,0.2),
        -5px 5px 20px rgba(0,0,0,0.05);
    background: #fff;
    border: 1px solid rgba(255,255,255,0.9);
}

/* Ambient Glows & Abstract Shapes */
.glow-backdrop {
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.12) 0%, rgba(245, 166, 35, 0) 60%);
    filter: blur(50px);
    z-index: -1;
}

.abstract-shape {
    position: absolute;
    border-radius: 50%;
    background: var(--tc-orange-light);
    filter: blur(30px);
    z-index: -1;
    opacity: 0.5;
}

.shape-1 { width: 150px; height: 150px; top: -50px; left: -20px; animation: floatLayer1 10s infinite; }
.shape-2 { width: 100px; height: 100px; bottom: -30px; right: 20px; background: rgba(0,0,0,0.03); animation: floatLayer2 12s infinite; }

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    padding: 12px 20px;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255,255,255,0.6);
    z-index: 10;
    white-space: nowrap;
    font-size: 0.85rem;
}

.fc-1 { top: -10%; right: -15%; animation: floatLayer1 6s ease-in-out infinite; }
.fc-2 { top: 40%; left: -20%; animation: floatLayer2 8s ease-in-out infinite; }
.fc-3 { bottom: -5%; right: 10%; background: var(--tc-dark); color: white; animation: floatLayer3 7s ease-in-out infinite; }
.fc-4 { bottom: 40%; right: -25%; animation: floatLayer1 9s ease-in-out infinite; animation-delay: 1s; }

@keyframes floatingPerspective {
    0%, 100% { transform: rotateY(-22deg) rotateX(12deg) translateY(0); }
    50% { transform: rotateY(-22deg) rotateX(12deg) translateY(-25px); }
}


@keyframes floatLayer1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(10px, -15px); } }
@keyframes floatLayer2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-15px, 10px); } }
@keyframes floatLayer3 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(15px, -5px); } }


/* Verification Card */
.verify-section {
    padding: 60px 0;
}

.verify-card {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.04);
    border: 1px solid var(--tc-gray);
}

/* Feature Cards */
.feature-card {
    padding: 30px;
    border-radius: 20px;
    background: white;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    border-color: var(--tc-orange-light);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--tc-orange-light);
    color: var(--tc-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

/* Footer */
.footer-dark {
    background-color: var(--tc-dark);
    color: #a4b0be;
    padding: 80px 0 30px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links a {
    color: #a4b0be;
    text-decoration: none;
    transition: 0.2s;
    line-height: 2;
}

.footer-links a:hover {
    color: var(--tc-orange);
}

/* --- Login Page --- */
.login-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--tc-bg);
    position: relative;
    overflow: hidden;
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.06);
    border: 1px solid var(--tc-gray);
    z-index: 10;
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo h3 {
    font-weight: 700;
    margin: 0;
    color: var(--tc-dark);
}

.login-logo span {
    color: var(--tc-orange);
}

.login-page .bg-glow-1 { width: 800px; height: 800px; top: -300px; left: -200px; }
.login-page .bg-glow-2 { width: 600px; height: 600px; bottom: -200px; right: -100px; }

.login-back-btn {
    position: absolute;
    top: 30px;
    left: 30px;
    color: var(--tc-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.login-back-btn:hover {
    color: var(--tc-orange);
}

/* --- Forms --- */
.premium-input {
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 0.9rem !important;
    border: 1px solid var(--tc-gray) !important;
    background: #fff !important;
}

.btn-tc-orange {
    background-color: var(--tc-orange);
    color: white;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 500;
    font-size: 0.9rem;
    border: none;
}


/* --- Certificate Display (Keep for student view) --- */
.certificate-container {
    position: relative;
    width: 800px;
    height: 1100px;
    margin: 0 auto;
    background: url('../images/certificate-template.jpg') no-repeat center center;
    background-size: cover;
    box-shadow: 0 15px 45px rgba(0,0,0,0.2);
    overflow: hidden;
}

.course-name {
    position: absolute;
    top: 40%;
    left: 10%;
    width: 80%;
    text-align: center;
    font-family: 'IBM Plex Sans Condensed', sans-serif;
    font-size: 30.5px;
    font-weight: 700;
    color: #feba19;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.student-name {
    position: absolute;
    top: 53%;
    font-size: 70px;
    font-weight: 700;
    left: 15%;
    width: 70%;
    text-align: center;
    font-family: 'Alex Brush', cursive;
    color: #000;
    letter-spacing: 1px;
}

.completion-date {
    position: absolute;
    top: 72%;
    left: 16%;
    width: 25%;
    text-align: center;
    font-size: 24px;
    color: #000;
    letter-spacing: 1px;
}

.certificate-id {
    position: absolute;
    bottom: 2%;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 14px;
    font-family: monospace;
    color: #ffffff;
}

.qr-code {
    position: absolute;
    bottom: 6%;
    right: 6%;
    width: 85px;
    height: 85px;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .sidebar { margin-left: -var(--tc-sidebar-width); }
    .main-content { margin-left: 0; }
    .sidebar.active { margin-left: 0; }
}

/* Login specific */
.login-body {
    background: linear-gradient(-45deg, #0f0c29, #302b63, #24243e, #f5a623);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Verification Section Redesign --- */
.verify-section {
    padding: 120px 0;
    position: relative;
    background-color: #f7f8fc;
    background-image: 
        radial-gradient(circle at 2px 2px, rgba(0,0,0,0.015) 1px, transparent 0),
        linear-gradient(135deg, rgba(245, 166, 35, 0.02) 0%, transparent 100%);
    background-size: 40px 40px, 100% 100%;
    overflow: hidden;
}

.verify-glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.08) 0%, rgba(245, 166, 35, 0) 70%);
    filter: blur(80px);
    z-index: 0;
}

.glass-verify-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 40px;
    padding: 60px;
    box-shadow: 
        0 40px 100px rgba(0,0,0,0.04),
        inset 0 0 40px rgba(255,255,255,0.4);
    position: relative;
    z-index: 10;
}

.premium-search-bar {
    background: white;
    border-radius: 60px;
    padding: 10px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-search-bar:focus-within {
    border-color: var(--tc-orange);
    box-shadow: 0 20px 50px rgba(245, 166, 35, 0.12);
    transform: translateY(-3px);
}

.premium-search-bar input {
    border: none;
    padding: 15px 25px;
    font-size: 1.2rem;
    font-weight: 500;
    width: 100%;
    background: transparent;
}

.premium-search-bar input:focus { outline: none; }

.btn-verify-gradient {
    background: linear-gradient(135deg, var(--tc-orange) 0%, #ff8c00 100%);
    color: white;
    border: none;
    padding: 18px 45px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 15px 30px rgba(245, 166, 35, 0.25);
    transition: all 0.4s ease;
    white-space: nowrap;
}

.btn-verify-gradient:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(245, 166, 35, 0.4);
    color: white;
}

/* Feature Cards Premium */
.feature-card-premium {
    background: white;
    border-radius: 30px;
    padding: 45px;
    border: 1px solid rgba(0,0,0,0.02);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.feature-card-premium:hover {
    transform: translateY(-15px);
    box-shadow: 0 40px 80px rgba(0,0,0,0.07);
    border-color: var(--tc-orange-light);
}

.feature-icon-box {
    width: 65px;
    height: 65px;
    border-radius: 20px;
    background: linear-gradient(135deg, #fff9f0 0%, #fff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--tc-orange);
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(245, 166, 35, 0.08);
}

.illus-badge {
    position: absolute;
    z-index: 11;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.5);
}

.ib-1 { top: -20px; left: 10%; animation: float 5s infinite; }
.ib-2 { bottom: -15px; right: 15%; animation: float 7s infinite; }

