/* Admin Brand Index Styles */
.title-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    margin-bottom: 1.5rem;
}

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

.brand-empty {
    margin-top: 1rem;
}

.brand-table th.actions {
    text-align: center;
    width: 100px;
}

.brand-api-key {
    user-select: all;
}

.brand-delete-form {
    display: inline;
}

/* Admin Shop Styles */

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

.shop-empty {
    margin-top: 1rem;
}

.shop-table {
    margin-top: 1.5rem;
}

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

.shop-icon {
    max-height: 40px;
    max-width: 40px;
}

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

.shop-code-display {
    background: #f5f5f5;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
}

.shop-status-active {
    color: #27ae60;
    font-weight: bold;
}

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

.shop-type-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
}

.shop-type-physical {
    background: #d4edda;
    color: #155724;
}

.shop-type-digital {
    background: #d1ecf1;
    color: #0c5460;
}

.shop-type-both {
    background: #cfe2ff;
    color: #084298;
}

.shop-delete-form {
    display: inline;
}

/* Online Shop Styles */

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

.online-shop-save-indicator {
    padding: 0.5rem 1rem;
    background: #3498db;
    color: white;
    border-radius: 4px;
    margin-bottom: 1rem;
}

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

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

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

.online-shop-link {
    font-size: 0.75rem;
}

.online-shop-status-active {
    color: #27ae60;
    font-weight: bold;
}

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

.online-shop-delete-form {
    display: inline;
}

/* Collaborators Styles */

.collaborators-container {
    margin: 0;
}

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

.collaborators-header h1 {
    margin: 0;
}

.collaborators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.collaborators-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.collaborators-card h3 {
    margin-top: 0;
    color: #2c3e50;
}

.collaborators-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.collaborators-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.collaborators-item strong {
    color: #2c3e50;
}

.collaborators-badge {
    background: #2c3e50;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

.collaborators-empty {
    color: #999;
    font-style: italic;
}

.collaborators-form-group {
    margin-bottom: 1rem;
}

.collaborators-form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.collaborators-form-button {
    width: 100%;
    text-align: center;
}

/* Documentation Archive (on brand index page) */

.documentation {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 12px;
    border-left: 5px solid #34495e;
}

.documentation h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 1rem;
    margin-top: 0;
}

.documentation h2 i {
    color: #34495e;
    font-size: 1.3em;
}

.doc-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.doc-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.doc-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.doc-header i {
    color: #34495e;
    font-size: 1.5em;
}

.doc-header h3 {
    margin: 0;
    font-size: 1.1em;
    color: #333;
}

.doc-card p {
    color: #666;
    font-size: 0.95em;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.doc-section {
    margin: 1rem 0;
    padding: 0.75rem;
    background: #f8f9fa;
    border-left: 3px solid #34495e;
    border-radius: 4px;
}

.doc-section strong {
    color: #333;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9em;
}

.code {
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    word-break: break-all;
}

.code-block {
    display: block;
    background: #f5f5f5;
    padding: 0.75rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    color: #333;
    overflow-x: auto;
    border-left: 3px solid #34495e;
    margin-top: 0.5rem;
    line-height: 1.4;
}

.doc-info {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.info-box {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-box i {
    color: #34495e;
    font-size: 1.3em;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.info-box strong {
    color: #333;
    display: block;
    margin-bottom: 0.5rem;
}

.info-box p {
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.shops-table {
    width: 100%;
    margin-top: 1rem;
    border-collapse: collapse;
}

.shops-table thead {
    background: #f5f5f5;
}

.shops-table th,
.shops-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.shops-table tr:hover {
    background: #f9f9f9;
}

.shops-table-empty {
    text-align: center;
    padding: 2rem;
    color: #999;
}

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


    .shop-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .brand-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}
