/* BNB Model Agency - Mobile-Friendly Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #262626;
    background-color: #fafafa;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    padding: 15px;
}

.card-header {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #efefef;
}

/* Model Card (Instagram-like) */
.model-card {
    background: white;
    border-radius: 3px;
    border: 1px solid #dbdbdb;
    margin-bottom: 15px;
}

.model-card-header {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #efefef;
}

.model-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}

.model-card-info h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.model-card-info p {
    font-size: 12px;
    color: #8e8e8e;
    margin: 0;
}

.model-card-image {
    width: 100%;
    display: block;
}

.model-card-body {
    padding: 14px 16px;
}

.model-card-actions {
    display: flex;
    padding: 8px 16px;
    border-top: 1px solid #efefef;
}

.model-card-actions button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    margin-right: 16px;
    padding: 4px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #0095f6;
    color: white;
}

.btn-primary:hover {
    background-color: #1877f2;
}

.btn-secondary {
    background-color: #efefef;
    color: #262626;
}

.btn-secondary:hover {
    background-color: #dbdbdb;
}

.btn-danger {
    background-color: #ed4956;
    color: white;
}

.btn-danger:hover {
    background-color: #c13584;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Form Elements */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: #262626;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dbdbdb;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fafafa;
}

.form-control:focus {
    outline: none;
    border-color: #8e8e8e;
    background-color: white;
}

textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
}

.col {
    flex: 1;
    padding: 0 8px;
}

.col-6 {
    flex: 0 0 50%;
    padding: 0 8px;
}

/* Model Grid */
.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 2px;
    margin: 0 -15px;
}

.model-grid-item {
    position: relative;
    padding-bottom: 100%;
    overflow: hidden;
    background-color: #f0f0f0;
}

.model-grid-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.model-grid-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
}

.model-grid-item:active .model-grid-item-overlay {
    opacity: 1;
}

/* Stats */
.stats-row {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    border-top: 1px solid #efefef;
    border-bottom: 1px solid #efefef;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
    display: block;
}

.stat-label {
    font-size: 12px;
    color: #8e8e8e;
    display: block;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success {
    background-color: #4cd964;
    color: white;
}

.badge-danger {
    background-color: #ff3b30;
    color: white;
}

.badge-warning {
    background-color: #ff9500;
    color: white;
}

.badge-info {
    background-color: #5ac8fa;
    color: white;
}

/* Avatar */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #dbdbdb;
}

.avatar-lg {
    width: 80px;
    height: 80px;
}

/* List Group */
.list-group {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.list-group-item {
    padding: 12px 16px;
    border-bottom: 1px solid #efefef;
    display: flex;
    align-items: center;
}

.list-group-item:last-child {
    border-bottom: none;
}

/* Chat Styles */
.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 170px);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background-color: #f0f0f0;
}

.chat-message {
    margin-bottom: 12px;
    max-width: 80%;
}

.chat-message.sent {
    margin-left: auto;
}

.chat-message.received {
    margin-right: auto;
}

.chat-bubble {
    padding: 10px 14px;
    border-radius: 18px;
    display: inline-block;
    max-width: 100%;
    word-wrap: break-word;
}

.chat-message.sent .chat-bubble {
    background-color: #0095f6;
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message.received .chat-bubble {
    background-color: white;
    color: #262626;
    border-bottom-left-radius: 4px;
}

.chat-time {
    font-size: 11px;
    color: #8e8e8e;
    margin-top: 4px;
    text-align: right;
}

.chat-input-container {
    padding: 10px;
    background: white;
    border-top: 1px solid #dbdbdb;
}

.chat-input-form {
    display: flex;
    gap: 8px;
}

.chat-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #dbdbdb;
    border-radius: 20px;
    font-size: 14px;
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0095f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
}

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

.alert-error,
.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .model-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .col-6 {
        flex: 0 0 100%;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.p-0 { padding: 0; }
.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }

.flex-1 { flex: 1; }
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-muted { color: #8e8e8e; }
.text-primary { color: #0095f6; }
.text-danger { color: #ed4956; }
.text-success { color: #4cd964; }
