/* UnifiedBeez Live Dashboard - Beautiful Styling */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #FFFBF5;
    min-height: 100vh;
    line-height: 1.6;
}

/* HEADER */
.header {
    background: linear-gradient(135deg, #1A4D2E 0%, #2D6A4F 50%, #52B788 100%);
    color: white;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    font-size: 2.5rem;
}

.header h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
}

.back-button {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* NAVIGATION */
.nav-container {
    background: white;
    padding: 15px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 90px;
    z-index: 999;
    overflow-x: auto;
}

.nav-scroll {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-item {
    padding: 10px 20px;
    background: #E8F5E9;
    color: #1A4D2E;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-item:hover {
    background: #1A4D2E;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 77, 46, 0.3);
}

/* CONTAINER */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* FRAME */
.frame {
    background: white;
    border: 3px solid #1A4D2E;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 12px rgba(26, 77, 46, 0.1);
}

.frame h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1A4D2E;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #E8F5E9 0%, #B7E4C7 100%);
    border-radius: 8px;
    margin-bottom: 30px;
    border: 2px solid #2D6A4F;
}

.frame h3 {
    font-size: 1.5rem;
    color: #1A4D2E;
    margin: 30px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid #E8F5E9;
}

.frame h4 {
    font-size: 1.2rem;
    color: #2D6A4F;
    margin: 20px 0 10px 0;
}

.frame p {
    color: #2C3E50;
    margin-bottom: 15px;
    line-height: 1.8;
}

.frame ul {
    margin-left: 20px;
    color: #2C3E50;
}

.frame li {
    margin: 8px 0;
    line-height: 1.6;
}

/* GRID LAYOUTS */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* CARD */
.card {
    background: white;
    border: 3px solid #2D6A4F;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(26, 77, 46, 0.15);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(45, 106, 79, 0.3);
    border-color: #1A4D2E;
}

.card h4 {
    color: #1A4D2E;
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 1.1rem;
}

.card ul {
    list-style: none;
    padding: 0;
}

.card li {
    padding: 6px 0;
    color: #2C3E50;
    font-size: 0.9rem;
}

.card li:before {
    content: "• ";
    color: #2D6A4F;
    font-weight: bold;
    margin-right: 8px;
}

.card p {
    font-size: 0.95rem;
    color: #2C3E50;
}

/* CODE BLOCK */
.code-block {
    background: #2C3E50;
    color: #E8F5E9;
    padding: 20px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    overflow-x: auto;
    margin: 20px 0;
    border: 2px solid #1A4D2E;
    white-space: pre;
    line-height: 1.5;
}

/* TABLE */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

thead {
    background: linear-gradient(135deg, #1A4D2E 0%, #2D6A4F 100%);
    color: white;
}

th {
    padding: 15px;
    text-align: left;
    font-weight: 700;
    font-size: 0.9rem;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #E8F5E9;
    color: #2C3E50;
    font-size: 0.9rem;
}

tbody tr:hover {
    background: #F5FFF5;
}

tbody tr:last-child td {
    border-bottom: none;
}

td strong {
    color: #1A4D2E;
    font-weight: 700;
}

td code {
    background: #E8F5E9;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #1A4D2E;
    font-size: 0.85rem;
}

/* SEE ALSO */
.see-also {
    background: #FFF9E6;
    border-left: 6px solid #FB9C1D;
    padding: 20px;
    border-radius: 8px;
    margin-top: 40px;
}

.see-also h3 {
    color: #1A4D2E;
    margin-bottom: 10px;
    border-bottom: none;
    font-size: 1.2rem;
}

.see-also p {
    margin: 0;
}

.see-also a {
    color: #1A4D2E;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.see-also a:hover {
    color: #2D6A4F;
    text-decoration: underline;
}

/* BACK TO TOP */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #1A4D2E;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(26, 77, 46, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background: #2D6A4F;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(26, 77, 46, 0.5);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }

    .frame {
        padding: 20px;
    }

    .frame h2 {
        font-size: 1.5rem;
    }

    table {
        font-size: 0.8rem;
    }

    th, td {
        padding: 8px;
    }
}

/* ADDITIONAL UTILITY CLASSES */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

/* SPECIAL HIGHLIGHT BOXES */
.highlight-box {
    background: #E8F5E9;
    border-left: 6px solid #2D6A4F;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.highlight-box h4 {
    color: #1A4D2E;
    margin-bottom: 10px;
}

.warning-box {
    background: #FFF9E6;
    border-left: 6px solid #FB9C1D;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.warning-box h4 {
    color: #FB9C1D;
    margin-bottom: 10px;
}

.info-box {
    background: #E3F2FD;
    border-left: 6px solid #2196F3;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.info-box h4 {
    color: #1976D2;
    margin-bottom: 10px;
}
