/* docs/stylesheets/extra.css */

/* =========================================
   1. DATA DICTIONARY TABLES (Compact View)
   ========================================= */
/* Use this for your schema definitions. 
   Markdown usage: | Col | Type | ... | 
   It applies automatically to all tables, making them look like data grids. */

.md-typeset table:not([class]) {
    font-size: 0.85rem;
    /* Slightly smaller font for data density */
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: inline-block;
    max-width: 100%;
    overflow-x: auto;
}

.md-typeset table:not([class]) th {
    background-color: #f5f7fa;
    /* Light grey header */
    color: #333;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e0e0e0;
}

/* Alternating rows for readability */
.md-typeset table:not([class]) tr:nth-child(2n) {
    background-color: #fcfcfc;
}

/* Code snippets inside tables (e.g. column names) */
.md-typeset table code {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 2px 4px;
    border-radius: 3px;
    color: #d32f2f;
    /* Reddish hue for technical terms */
    white-space: nowrap;
}

/* =========================================
   2. PRICING TABLES (Custom Class)
   ========================================= */
/* Markdown usage: 
   <div class="pricing-table">
     ... markdown table ...
   </div> 
*/

.pricing-table table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    border: none;
    box-shadow: none;
}

.pricing-table th {
    background-color: #2c3e50;
    /* Dark Slate */
    color: #fff !important;
    font-size: 1.1rem;
    padding: 15px;
    text-align: center;
    border: 1px solid #2c3e50;
}

.pricing-table td {
    text-align: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
    border-left: 1px solid #eee;
}

/* Highlight the "Price" row */
.pricing-table tr:nth-child(1) td {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

/* =========================================
   3. BRANDING & UI TWEAKS
   ========================================= */

/* Make the logo slightly larger in the header */
.md-header__button.md-logo img {
    height: 32px;
    width: auto;
}

/* Add a subtle border to images (screenshots) */
.md-content img {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Custom "Badge" for License Types */
/* Usage: <span class="badge-cdla">CDLA</span> */
.badge-cdla {
    background-color: #4caf50;
    /* Green */
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    vertical-align: middle;
}

.badge-odbl {
    background-color: #ff9800;
    /* Orange */
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    vertical-align: middle;
}