/* Professional Component Library */
/* Enterprise-grade styling for modern design patterns */

/* ===== CONTAINERS ===== */

/* Main Container */
.kss-container {
    width: 100%;
    max-width: 95vw; /* Maximize space utilization */
    margin: 0 auto;
    padding: 6.5vw 2.5vw; /* Reduced left/right padding for more content space */
    background-color: var(--background-color);
}

/* Full Height Container */
.kss-full-height {
    min-height: auto; /* Allow content to grow naturally */
    padding-top: 6.5vw !important;
    padding-bottom: 6.5vw !important;
}

/* Combined Container with Full Height */
.kss-container.kss-full-height {
    padding: 6.5vw 2.5vw !important;
    min-height: auto !important; /* Allow content to grow naturally */
}

/* Responsive padding adjustments */
@media screen and (min-width: 1024px) and (max-width: 1365px) {
    .kss-container {
        padding: 7.5vw 2vw !important;
    }
    .kss-full-height {
        padding-top: 7.5vw !important;
        padding-bottom: 7.5vw !important;
    }
    .kss-container.kss-full-height {
        padding: 7.5vw 2vw !important;
    }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
    .kss-container {
        padding: 8.5vw 2vw !important;
    }
    .kss-full-height {
        padding-top: 8.5vw !important;
        padding-bottom: 8.5vw !important;
    }
    .kss-container.kss-full-height {
        padding: 8.5vw 2vw !important;
    }
}

@media screen and (min-width: 415px) and (max-width: 767px) {
    .kss-container {
        padding: 10vw 2vw !important;
    }
    .kss-full-height {
        padding-top: 10vw !important;
        padding-bottom: 10vw !important;
    }
    .kss-container.kss-full-height {
        padding: 10vw 2vw !important;
    }
}

@media screen and (max-width: 414px) {
    .kss-container {
        padding: 12vw 2vw !important;
    }
    .kss-full-height {
        padding-top: 12vw !important;
        padding-bottom: 12vw !important;
    }
    .kss-container.kss-full-height {
        padding: 12vw 2vw !important;
    }
}

/* ===== MODAL SYSTEM ===== */

/* Modal Overlay */
.kss-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    backdrop-filter: blur(0.26vw);
}

/* Modal Container */
.kss-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 0.52vw;
    box-shadow: 0 1.04vw 2.08vw rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 9999999;
}

/* Modal Header */
.kss-modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--hover-color));
    color: white;
    padding: 1.04vw 1.56vw;
    border-radius: 0.52vw 0.52vw 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kss-modal-title {
    font-family: var(--font-display);
    font-size: 1.25vw;
    font-weight: var(--weight-bold);
    margin: 0;
}

.kss-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.56vw;
    cursor: pointer;
    padding: 0;
    width: 2.08vw;
    height: 2.08vw;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.kss-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Modal Body */
.kss-modal-body {
    padding: 1.56vw;
    font-family: var(--font-body);
    color: var(--text-high-contrast);
}

/* Modal Footer */
.kss-modal-footer {
    padding: 1.04vw 1.56vw;
    border-top: 0.05vw solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 0.52vw;
    background: var(--bg-subtle);
    border-radius: 0 0 0.52vw 0.52vw;
}

/* Confirmation Modal Specific */
.kss-confirm-modal .kss-modal-header {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.kss-success-modal .kss-modal-header {
    background: linear-gradient(135deg, #28a745, #218838);
}

.kss-warning-modal .kss-modal-header {
    background: linear-gradient(135deg, #e0a100, #c8900e);
}

/* Modal Sizes */
.kss-modal-sm { width: 20.83vw; }
.kss-modal-md { width: 31.25vw; }
.kss-modal-lg { width: 52.08vw; }
.kss-modal-xl { width: 72.92vw; }

/* ===== COPY BUTTONS ===== */

/* Copy Button */
.kss-copy-btn {
    position: relative;
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    border: none;
    padding: 0.39vw 0.78vw;
    border-radius: 0.21vw;
    font-size: 0.73vw;
    font-weight: var(--weight-semibold);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.26vw;
    font-family: var(--font-ui);
}

.kss-copy-btn:hover {
    background: linear-gradient(135deg, #138496, #17a2b8);
    transform: translateY(-0.05vw);
}

.kss-copy-btn.copied {
    background: linear-gradient(135deg, #28a745, #218838);
}

.kss-copy-btn.copied::after {
    content: "Copied!";
    position: absolute;
    top: -2.08vw;
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    color: white;
    padding: 0.26vw 0.52vw;
    border-radius: 0.21vw;
    font-size: 0.65vw;
    white-space: nowrap;
    z-index: 1000;
    animation: kssTooltipFade 2s ease forwards;
}

/* Copy Icon */
.kss-copy-icon {
    width: 0.83vw;
    height: 0.83vw;
    fill: currentColor;
}

/* Copy Field Group */
.kss-copy-field {
    display: flex;
    align-items: center;
    gap: 0.52vw;
    margin-bottom: 0.78vw;
}

.kss-copy-input {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 0.73vw;
    padding: 0.52vw;
    border: 0.05vw solid var(--border-color);
    border-radius: 0.21vw;
    background: #f8f9fa;
    color: var(--text-high-contrast);
    user-select: all;
}

.kss-copy-label {
    font-family: var(--font-ui);
    font-size: 0.73vw;
    font-weight: var(--weight-semibold);
    color: var(--text-high-contrast);
    margin-bottom: 0.26vw;
    display: block;
}

/* ===== BUTTONS ===== */

/* Primary Action Button */
.btn-primary {
    background: linear-gradient(135deg, #007BFF, #0056b3);
    color: white;
    border: none;
    padding: 0.78vw 1.56vw; /* 15px 30px equivalent at 1920px */
    border-radius: 0.26vw; /* 5px equivalent */
    font-size: 0.83vw; /* 16px equivalent */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0.13vw 0.52vw rgba(0,123,255,0.3);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    line-height: 1.2;
    min-width: 5.21vw; /* 100px equivalent */
}

.btn-primary:hover {
    transform: translateY(-0.05vw);
    box-shadow: 0 0.26vw 0.78vw rgba(0,123,255,0.4);
    background: linear-gradient(135deg, #0056b3, #004085);
    text-decoration: none;
    color: white;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 0.05vw 0.26vw rgba(0,123,255,0.3);
}

/* Secondary Button */
.btn-secondary {
    background: transparent;
    color: #007BFF;
    border: 0.05vw solid #007BFF;
    padding: 0.78vw 1.56vw;
    border-radius: 0.26vw;
    font-size: 0.83vw;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    line-height: 1.2;
    min-width: 5.21vw;
}

.btn-secondary:hover {
    background: #007BFF;
    color: white;
    transform: translateY(-0.05vw);
    box-shadow: 0 0.26vw 0.78vw rgba(0,123,255,0.2);
    text-decoration: none;
}

/* Danger/Delete Button */
.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    padding: 0.78vw 1.56vw;
    border-radius: 0.26vw;
    font-size: 0.83vw;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0.13vw 0.52vw rgba(220,53,69,0.3);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    line-height: 1.2;
    min-width: 5.21vw;
}

.btn-danger:hover {
    transform: translateY(-0.05vw);
    box-shadow: 0 0.26vw 0.78vw rgba(220,53,69,0.4);
    background: linear-gradient(135deg, #c82333, #a71e2a);
    text-decoration: none;
    color: white;
}

/* Success/Confirm Button */
.btn-success {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    border: none;
    padding: 0.78vw 1.56vw;
    border-radius: 0.26vw;
    font-size: 0.83vw;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0.13vw 0.52vw rgba(40,167,69,0.3);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    line-height: 1.2;
    min-width: 5.21vw;
}

.btn-success:hover {
    transform: translateY(-0.05vw);
    box-shadow: 0 0.26vw 0.78vw rgba(40,167,69,0.4);
    background: linear-gradient(135deg, #218838, #1e7e34);
    text-decoration: none;
    color: white;
}

/* Warning Button */
.btn-warning {
    background: linear-gradient(135deg, #e0a100, #c8900e);
    color: #212529;
    border: none;
    padding: 0.78vw 1.56vw;
    border-radius: 0.26vw;
    font-size: 0.83vw;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0.13vw 0.52vw rgba(255,193,7,0.3);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    line-height: 1.2;
    min-width: 5.21vw;
}

.btn-warning:hover {
    transform: translateY(-0.05vw);
    box-shadow: 0 0.26vw 0.78vw rgba(255,193,7,0.4);
    background: linear-gradient(135deg, #e0a800, #d39e00);
    text-decoration: none;
    color: #212529;
}
/* Info Button */
.btn-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    border: none;
    padding: 0.78vw 1.56vw;
    border-radius: 0.26vw;
    font-size: 0.83vw;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0.13vw 0.52vw rgba(23,162,184,0.3);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    line-height: 1.2;
    min-width: 5.21vw;
}
.btn-info:hover {
    transform: translateY(-0.05vw);
    box-shadow: 0 0.26vw 0.78vw rgba(23,162,184,0.4);
    background: linear-gradient(135deg, #138496, #117a8b);
    text-decoration: none;
    color: white;
}
.btn-info:active {
    transform: translateY(0);
    box-shadow: 0 0.05vw 0.26vw rgba(23,162,184,0.3);
}

/* Small Button Variant */
.btn-sm {
    padding: 0.52vw 1.04vw; /* 10px 20px equivalent */
    font-size: 0.73vw; /* 14px equivalent */
    min-width: 3.65vw; /* 70px equivalent */
}

/* Table Cell Button Styling */
.component-table td .btn-sm {
    margin: 0.13vw; /* 2.5px equivalent - space between buttons */
    display: inline-block;
}

/* Full Width Button for TDs */
.btn-full-width {
    width: 100%;
    margin-bottom: 0.26vw; /* 5px equivalent */
}

.btn-full-width:last-child {
    margin-bottom: 0;
}

/* Button Group Container for table cells */
.btn-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.26vw; /* 5px equivalent */
    width: 100%;
}

.btn-group-horizontal {
    display: flex;
    gap: 0.26vw; /* 5px equivalent */
    flex-wrap: wrap;
    align-items: center;
}

/* Action cell styling */
.component-action-cell {
    white-space: nowrap;
    min-width: 10.42vw; /* 200px equivalent */
    padding: 0.52vw; /* 10px equivalent */
}

/* Large Button Variant */
.btn-lg {
    padding: 1.04vw 2.08vw; /* 20px 40px equivalent */
    font-size: 0.94vw; /* 18px equivalent */
    min-width: 6.77vw; /* 130px equivalent */
}

/* ===== PROFESSIONAL MODALS ===== */

.component-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(0.13vw);
}

.component-modal-overlay.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.component-modal {
    background: white;
    border-radius: 0.52vw; /* 10px equivalent */
    box-shadow: 0 1.04vw 2.08vw rgba(0,0,0,0.3);
    max-width: 26vw; /* 500px equivalent */
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

.component-modal-header {
    padding: 1.04vw 1.56vw;
    border-bottom: 0.05vw solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 0.52vw 0.52vw 0 0;
}

.component-modal-header h3 {
    margin: 0;
    font-size: 1.25vw; /* 24px equivalent */
    font-weight: 600;
    color: #333;
}

.component-modal-close {
    background: none;
    border: none;
    font-size: 1.56vw; /* 30px equivalent */
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 1.56vw;
    height: 1.56vw;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.component-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.component-modal-body {
    padding: 1.56vw;
}

.component-modal-footer {
    padding: 1.04vw 1.56vw;
    border-top: 0.05vw solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 0.52vw;
    background: #f8f9fa;
    border-radius: 0 0 0.52vw 0.52vw;
}

/* ===== PROFESSIONAL FORMS ===== */

.component-form-group {
    margin-bottom: 1.04vw;
}

.component-label {
    display: block;
    margin-bottom: 0.26vw;
    font-weight: 600;
    color: #333;
    font-size: 0.83vw;
}

.component-input {
    width: 100%;
    padding: 0.78vw;
    border: 0.05vw solid #e0e0e0;
    border-radius: 0.26vw;
    font-size: 0.83vw;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
}

.component-input:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 0 0.16vw rgba(0,123,255,0.25);
}

.component-input:invalid {
    border-color: #dc3545;
}

.component-input:invalid:focus {
    box-shadow: 0 0 0 0.16vw rgba(220,53,69,0.25);
}

.component-textarea {
    min-height: 5.21vw; /* 100px equivalent */
    resize: vertical;
}

.component-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* ===== PROFESSIONAL COPY BUTTONS ===== */

.component-copy-container {
    display: flex;
    align-items: center;
    gap: 0.26vw;
    position: relative;
}

.component-copy-input {
    flex: 1;
    padding-right: 2.6vw; /* 50px equivalent */
}

.component-copy-btn {
    background: #f8f9fa;
    border: 0.05vw solid #e0e0e0;
    border-radius: 0.26vw;
    padding: 0.52vw;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.08vw; /* 40px equivalent */
    height: 2.08vw;
}

.component-copy-btn:hover {
    background: #e9ecef;
    border-color: #007BFF;
}

.component-copy-btn.copied {
    background: #d4edda;
    border-color: #28a745;
    color: #28a745;
}

.component-copy-icon {
    width: 0.83vw; /* 16px equivalent */
    height: 0.83vw;
    fill: currentColor;
}

/* ===== PROFESSIONAL TABLES ===== */

.component-table-container {
    overflow-x: auto;
    border-radius: 0.52vw;
    box-shadow: 0 0.26vw 1.04vw rgba(0,0,0,0.1);
    margin-bottom: 1.56vw;
    -webkit-overflow-scrolling: touch;
}

/* Mobile Table Responsiveness */
@media (max-width: 768px) {
    .component-table-container {
        margin: 0 -2.42vw 1.56vw -2.42vw;
        border-radius: 0;
    }
    
    .component-table {
        min-width: 600px;
        font-size: 14px;
    }
    
    .component-table th,
    .component-table td {
        padding: 8px 12px;
        white-space: nowrap;
    }
}

.component-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.83vw;
}

.component-table th {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 1.04vw;
    font-weight: 600;
    text-align: left;
    border-bottom: 0.05vw solid #e0e0e0;
    color: #495057;
    position: sticky;
    top: 0;
    z-index: 10;
}

.component-table td {
    padding: 1.04vw;
    border-bottom: 0.05vw solid #f0f0f0;
    vertical-align: top;
}

.component-table tbody tr:hover {
    background: #f8f9fa;
}

.component-table tbody tr:last-child td {
    border-bottom: none;
}

/* ===== PROFESSIONAL CONTAINERS ===== */

.component-container {
    max-width: 95vw;
    margin: 0 auto;
    padding: 1.04vw;
    padding-top: 5.21vw; /* 100px equivalent - account for fixed header */
    padding-bottom: 2.60vw; /* 50px equivalent - account for fixed footer */
}

.component-full-height {
    min-height: auto; /* Allow content to grow naturally */
}

.component-card {
    background: white;
    border-radius: 0.52vw;
    box-shadow: 0 0.26vw 1.04vw rgba(0,0,0,0.1);
    padding: 1.56vw;
    margin-bottom: 1.56vw;
}

.component-card-header {
    border-bottom: 0.05vw solid #e0e0e0;
    padding-bottom: 1.04vw;
    margin-bottom: 1.56vw;
}

.component-card-title {
    font-size: 1.46vw; /* 28px equivalent */
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* ===== PROFESSIONAL GRID SYSTEM ===== */

.component-grid {
    display: grid;
    gap: 1.04vw;
}

.component-grid-2 { grid-template-columns: repeat(2, 1fr); }
.component-grid-3 { grid-template-columns: repeat(3, 1fr); }
.component-grid-4 { grid-template-columns: repeat(4, 1fr); }
.component-grid-6 { grid-template-columns: repeat(6, 1fr); }
.component-grid-12 { grid-template-columns: repeat(12, 1fr); }

/* ===== SCROLL TO TOP BUTTON ===== */

.scroll-to-top {
    position: fixed;
    bottom: 2.08vw;
    right: 2.08vw;
    width: 3.12vw;
    height: 3.12vw;
    min-width: 50px;
    min-height: 50px;
    max-width: 70px;
    max-height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--hover-color));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.56vw;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0.26vw 0.78vw rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    z-index: 9999999;
}

.scroll-to-top:hover {
    transform: translateY(-0.13vw);
    box-shadow: 0 0.39vw 1.04vw rgba(0,0,0,0.4);
}

.scroll-to-top.show {
    display: flex;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        font-size: 18px;
    }
}

/* ===== PROFESSIONAL UTILITIES ===== */

.component-text-center { text-align: center; }
.component-text-right { text-align: right; }
.component-text-left { text-align: left; }

.component-mb-1 { margin-bottom: 0.52vw; }
.component-mb-2 { margin-bottom: 1.04vw; }
.component-mb-3 { margin-bottom: 1.56vw; }
.component-mb-4 { margin-bottom: 2.08vw; }

.component-mt-1 { margin-top: 0.52vw; }
.component-mt-2 { margin-top: 1.04vw; }
.component-mt-3 { margin-top: 1.56vw; }
.component-mt-4 { margin-top: 2.08vw; }

.component-mr-1 { margin-right: 0.52vw; }
.component-mr-2 { margin-right: 1.04vw; }
.component-mr-3 { margin-right: 1.56vw; }

.component-ml-1 { margin-left: 0.52vw; }
.component-ml-2 { margin-left: 1.04vw; }
.component-ml-3 { margin-left: 1.56vw; }

.component-p-1 { padding: 0.52vw; }
.component-p-2 { padding: 1.04vw; }
.component-p-3 { padding: 1.56vw; }
.component-p-4 { padding: 2.08vw; }

.component-hidden { display: none; }
.component-visible { display: block; }

/* ===== PROFESSIONAL ANIMATIONS ===== */

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

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-1.04vw);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.component-pulse { animation: pulse 2s infinite; }

/* ===== PROFESSIONAL RESPONSIVE BREAKPOINTS ===== */

/* Tablet Landscape: 1024px - 1365px */
@media screen and (min-width: 1024px) and (max-width: 1365px) {
    .btn-primary, .btn-secondary, .btn-danger, .btn-success, .btn-warning, .btn-info {
        padding: 1vw 2vw;
        font-size: 1.1vw;
    }
    
    .component-modal {
        max-width: 35vw;
    }
    
    .component-input, .component-label {
        font-size: 1.1vw;
    }
    
    .component-table {
        font-size: 1vw;
    }
}

/* Tablet Portrait: 768px - 1023px */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .btn-primary, .btn-secondary, .btn-danger, .btn-success, .btn-warning, .btn-info {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .component-modal {
        max-width: 80vw;
    }
    
    .component-container {
        max-width: 95vw;
        padding: 16px;
        padding-top: 100px;
        padding-bottom: 50px;
    }
    
    .component-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .component-grid-6 { grid-template-columns: repeat(3, 1fr); }
    .component-grid-12 { grid-template-columns: repeat(6, 1fr); }
}

/* Mobile Landscape: 415px - 767px */
@media screen and (min-width: 415px) and (max-width: 767px) {
    .btn-primary, .btn-secondary, .btn-danger, .btn-success, .btn-warning, .btn-info {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 80px;
    }
    
    .component-modal {
        max-width: 90vw;
        margin: 20px;
    }
    
    .component-container {
        padding: 12px;
        padding-top: 100px;
        padding-bottom: 50px;
    }
    
    .component-grid-2, .component-grid-3, .component-grid-4, .component-grid-6, .component-grid-12 {
        grid-template-columns: 1fr;
    }
    
    .component-table-container {
        overflow-x: scroll;
    }
}

/* Mobile Portrait: Up to 414px */
@media screen and (max-width: 414px) {
    .btn-primary, .btn-secondary, .btn-danger, .btn-success, .btn-warning, .btn-info {
        padding: 8px 16px;
        font-size: 12px;
        min-width: 70px;
        width: 100%;
        margin-bottom: 8px;
    }
    
    .component-modal {
        max-width: 95vw;
        margin: 10px;
    }
    
    .component-container {
        padding: 8px;
        padding-top: 100px;
        padding-bottom: 50px;
    }
    
    .component-card {
        padding: 16px;
    }
    
    .component-modal-footer {
        flex-direction: column;
    }
    
    .component-modal-footer .btn-primary,
    .component-modal-footer .btn-secondary {
        width: 100%;
    }
}