/* PolytechEDGE Main Stylesheet
   Modern UI with consistent design system
   Version 1.0
*/

:root {
    /* Color Palette */
    --primary-color: #3a86ff;
    --secondary-color: #ff006e;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --success-color: #38b000;
    --warning-color: #ffbe0b;
    --danger-color: #ff006e;
    --info-color: #4cc9f0;

    /* UI Properties */
    --transition-speed: 0.3s;
    --border-radius: 10px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-xxl: 3rem;
}

/* Base Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-color);
    transition: background-color 0.3s ease;
    color: #333;
    line-height: 1.6;
}

body[data-bs-theme="dark"] {
    background-color: #121212;
    color: var(--light-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--space-md);
}

/* Link Styles */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

a:hover {
    color: #1363df;
    text-decoration: none;
}

body[data-bs-theme="dark"] a {
    color: #5a9cff;
}

body[data-bs-theme="dark"] a:hover {
    color: #78aeff;
}

/* Button Styles */
.btn {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    text-transform: capitalize;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #1363df);
    border: none;
}

.btn-success {
    background: linear-gradient(45deg, var(--success-color), #2b9348);
    border: none;
}

.btn-danger {
    background: linear-gradient(45deg, var(--danger-color), #bc0058);
    border: none;
}

.btn-warning {
    background: linear-gradient(45deg, var(--warning-color), #e85d04);
    border: none;
}

.btn-info {
    background: linear-gradient(45deg, var(--info-color), #0096c7);
    border: none;
}

.btn-outline-primary, .btn-outline-success, .btn-outline-danger,
.btn-outline-warning, .btn-outline-info, .btn-outline-light {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.25rem 1rem;
    font-size: 0.875rem;
}

/* Card Styles */
.card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    box-shadow: var(--box-shadow);
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.card-header {
    background: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

.card-title {
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.card-body {
    padding: var(--space-lg);
}

body[data-bs-theme="dark"] .card {
    background: rgba(30, 30, 40, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

body[data-bs-theme="dark"] .card-header {
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Navbar Styles */
.navbar {
    background: linear-gradient(135deg, var(--dark-color), #2a2a5a) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: all var(--transition-speed) ease;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-link {
    position: relative;
    margin: 0 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover:after, .nav-link.active:after {
    width: 100%;
}

/* Feature Icon */
.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color), #1363df);
    color: white;
    box-shadow: 0 10px 20px rgba(19, 99, 223, 0.3);
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, var(--dark-color), #2a2a5a);
    color: white;
    padding-top: 50px;
    position: relative;
}

.footer-wave {
    position: absolute;
    top: -70px;
    left: 0;
    width: 100%;
    height: 70px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%231a1a2e' fill-opacity='1' d='M0,128L48,138.7C96,149,192,171,288,170.7C384,171,480,149,576,149.3C672,149,768,171,864,176C960,181,1056,171,1152,154.7C1248,139,1344,117,1392,106.7L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.footer-link:hover {
    color: white;
    transform: translateX(5px);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Hero Sections */
.hero {
    position: relative;
    width: 100%;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero video, .hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.7), rgba(42, 42, 90, 0.7));
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    animation: fadeInDown 1s ease;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

.hero-btn {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    background: linear-gradient(45deg, var(--primary-color), #1363df);
    border: none;
    color: white;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
    box-shadow: 0 4px 15px rgba(58, 134, 255, 0.4);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(58, 134, 255, 0.6);
}

/* Table Styles */
.table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.table thead th {
    background: linear-gradient(45deg, var(--primary-color), #1363df);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 15px;
    border: none;
}

.table tbody tr {
    transition: all var(--transition-speed) ease;
}

.table tbody tr:hover {
    background-color: rgba(58, 134, 255, 0.05);
}

.table td {
    padding: 15px;
    vertical-align: middle;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

body[data-bs-theme="dark"] .table thead th {
    background: linear-gradient(45deg, #2a2a5a, #1a1a2e);
}

body[data-bs-theme="dark"] .table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

body[data-bs-theme="dark"] .table td {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Form Styles */
.form-control {
    border-radius: var(--border-radius);
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed) ease;
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.3);
    border-color: var(--primary-color);
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
}

.form-select {
    border-radius: var(--border-radius);
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

/* Progress Bars */
.progress {
    height: 12px;
    border-radius: 50px;
    background-color: rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
}

.progress-bar {
    border-radius: 50px;
    background: linear-gradient(45deg, var(--primary-color), #1363df);
}

/* Light/Dark Mode Toggle */
.mode-toggle {
    width: 60px;
    height: 30px;
    border-radius: 15px;
    background-color: #121212;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

body[data-bs-theme="light"] .mode-toggle {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
}

.toggle-thumb {
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: white;
    left: 4px;
    transition: all 0.3s ease;
}

body[data-bs-theme="light"] .toggle-thumb {
    left: 34px;
    background-color: #121212;
}

.toggle-icon {
    font-size: 14px;
    color: yellow;
    z-index: 1;
}

body[data-bs-theme="light"] .toggle-icon.sun {
    color: orange;
}

body[data-bs-theme="dark"] .toggle-icon.moon {
    color: #aaa;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero {
        height: 70vh;
    }
    .navbar-brand {
        font-size: 1.2rem;
    }
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.75rem;
    }
    h3 {
        font-size: 1.5rem;
    }
    h4 {
        font-size: 1.25rem;
    }
    .card-body {
        padding: 1rem;
    }
    .footer {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .hero {
        height: 60vh;
    }
    .card {
        margin-bottom: 20px;
    }
}























