/* Global Styles */
.no-content {
    margin-top: 1rem;
}

.actions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* Tables */
table th.text-center {
    text-align: center;
    width: 100px;
}

table th.icon-col {
    width: 60px;
}

table th.drag-col {
    width: 40px;
}

.code-inline {
    user-select: all;
}

.form-inline {
    display: inline;
}

.form-inline-centered {
    display: inline;
}

/* Images and Icons */
.icon-small {
    max-height: 40px;
    max-width: 40px;
}

.icon-tiny {
    max-height: 30px;
    max-width: 30px;
}

.icon-placeholder {
    font-size: 1.5em;
    color: #999;
}

.drag-handle {
    cursor: grab;
    text-align: center;
    color: #999;
}

/* Status Badges */
.status-active {
    color: #27ae60;
    font-weight: bold;
}

.status-inactive {
    color: #e74c3c;
    font-weight: bold;
}

.badge-physical {
    background: #d4edda;
    color: #155724;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
}

.badge-digital {
    background: #d1ecf1;
    color: #0c5460;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
}

.badge-both {
    background: #cfe2ff;
    color: #084298;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
}

/* Code Display */
.code-small {
    background: #f5f5f5;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
}

.code-truncated {
    font-size: 0.75rem;
}

.text-muted {
    color: #999;
}

.text-muted-lg {
    color: #666;
    font-size: 0.9rem;
}

/* Alerts and Messages */
.alert-container {
    margin-bottom: 1rem;
}

.alert-success {
    padding: 1rem;
    background: #d4edda;
    color: #155724;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
}

.alert-error {
    padding: 1rem;
    background: #f8d7da;
    color: #721c24;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
}

.alert-info {
    padding: 0.5rem 1rem;
    background: #3498db;
    color: white;
    border-radius: 4px;
}

/* Layout Helpers */
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.flex-center {
    text-align: center;
}

.flex-center-btn {
    width: 100%;
    text-align: center;
}

/* Form Elements */
.help-text {
    display: block;
    margin-top: 0.25rem;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.checkbox-label {
    margin: 0;
}

/* Links and Navigation */
.link-primary {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.link-primary:hover {
    text-decoration: underline;
}

.nav-link-admin {
    color: #ffffff;
    font-weight: bold;
}

.login-logout-link {
    color: white;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    background-color: #3498db;
    border-radius: 4px;
}

/* Dividers */
.divider {
    margin: 2rem 0;
    border: none;
    border-top: 1px solid #ddd;
}

/* Typography */
.text-center {
    text-align: center;
}

.text-container-center {
    max-width: 400px;
    margin: 50px auto;
}

.text-container-large {
    max-width: 500px;
    margin: 50px auto;
}

.remember-me-label {
    margin: 0;
}

.drag-instruction {
    cursor: grab;
}

/* Content Sections */
.section {
    display: none;
}

.section.active {
    display: block;
}

/* Button Helpers */
.button-width-full {
    width: 100%;
    text-align: center;
}

.button-padding-small {
    padding: 4px 12px;
    font-size: 12px;
}

.button-form-inline {
    display: inline;
    padding: 4px 12px;
    font-size: 12px;
}

/* Shop Lists */
.shop-list-header {
    margin-top: 1.5rem;
}

.shop-drag-info {
    margin: 1rem 0;
    color: #666;
    font-size: 0.9rem;
}

/* Login/Register Pages */
.auth-container {
    max-width: 400px;
    margin: 50px auto;
}

.auth-container-large {
    max-width: 500px;
    margin: 50px auto;
}
