/* ===================================
   RMT Attendance Documentation Styles
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark: #1f2937;
    --gray: #6b7280;
    --light-gray: #f3f4f6;
    --white: #ffffff;
    --border-radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

.version {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

/* Main Content */
.main-content {
    padding: 40px 30px;
}

.hero {
    text-align: center;
    margin-bottom: 50px;
}

.hero h2 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.1rem;
    color: var(--gray);
}

/* Documentation Cards */
.doc-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.card {
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.developer-card::before {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
}

.user-card::before {
    background: linear-gradient(90deg, #8b5cf6 0%, #7c3aed 100%);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.card > p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.card-features {
    background: var(--light-gray);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.card-features ul {
    list-style: none;
}

.card-features li {
    padding: 8px 0;
    color: var(--dark);
    font-size: 0.95rem;
}

.card-features li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--success-color);
    border-radius: 50%;
    margin-right: 10px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: var(--white);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Quick Links */
.quick-links {
    background: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 50px;
}

.quick-links h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: var(--white);
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s ease;
    font-weight: 500;
}

.quick-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateX(5px);
}

.quick-link .icon {
    font-size: 1.5rem;
}

/* Features Section */
.features-section {
    margin-bottom: 50px;
}

.features-section h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.feature {
    text-align: center;
    padding: 25px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.feature:hover {
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.feature p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.5;
}

/* Tech Stack */
.tech-stack {
    text-align: center;
    margin-bottom: 30px;
}

.tech-stack h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.badge {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 30px;
}

.footer p {
    margin-bottom: 10px;
}

.footer-links {
    margin-top: 15px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    margin: 0 10px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Documentation Page Styles */
.doc-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--dark);
    color: var(--white);
    padding: 30px 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 0 25px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.sidebar-header p {
    font-size: 0.85rem;
    opacity: 0.7;
}

.nav-menu {
    list-style: none;
    padding: 20px 0;
}

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

.nav-menu a {
    display: block;
    padding: 12px 25px;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary-color);
}

.nav-submenu {
    list-style: none;
    padding-left: 20px;
    margin-top: 5px;
}

.nav-submenu a {
    font-size: 0.9rem;
    padding: 8px 25px;
    opacity: 0.8;
}

.doc-content {
    flex: 1;
    padding: 40px 50px;
    background: var(--white);
}

.doc-content h1 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.doc-content h2 {
    font-size: 2rem;
    color: var(--dark);
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-gray);
}

.doc-content h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-top: 30px;
    margin-bottom: 15px;
}

.doc-content h4 {
    font-size: 1.2rem;
    color: var(--dark);
    margin-top: 20px;
    margin-bottom: 10px;
}

.doc-content p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: var(--gray);
}

.doc-content ul,
.doc-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.doc-content li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--gray);
}

.doc-content code {
    background: var(--light-gray);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--danger-color);
}

.doc-content pre {
    background: var(--dark);
    color: var(--white);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.doc-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.note {
    background: #dbeafe;
    border-left: 4px solid #3b82f6;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.note strong {
    color: #1e40af;
}

.warning {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.warning strong {
    color: #92400e;
}

.success {
    background: #d1fae5;
    border-left: 4px solid #10b981;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.success strong {
    color: #065f46;
}

.table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border: 1px solid var(--light-gray);
}

table th {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

table tr:nth-child(even) {
    background: var(--light-gray);
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--light-gray);
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.back-home:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
    .doc-cards {
        grid-template-columns: 1fr;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .doc-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .doc-content {
        padding: 20px;
    }

    .logo h1 {
        font-size: 1.8rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .back-home,
    .footer {
        display: none;
    }

    .doc-content {
        padding: 0;
    }

    body {
        background: var(--white);
    }
}
