.color-dialog-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.color-dialog-content {
    position: relative;
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.color-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.color-dialog-header h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.color-dialog-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    line-height: 1;
}

.color-dialog-body {
    padding: 20px;
    max-height: 50vh;
    overflow-y: auto;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 15rem;
    height: 18rem;
    padding: 2px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.color-option:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
}

.color-option.selected {
    border-color: #f97316;
    background-color: #fff7ed;
}

.color-thumbnail {
    width: 15rem;
    height: 15rem;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2px;
}

.color-name {
    font-size: 14px;
    text-align: center;
    color: #374151;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.color-dialog-footer {
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
}

.btn-cancel {
    padding: 8px 20px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: white;
    color: #374151;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.btn-cancel:hover {
    background-color: #f3f4f6;
}

.btn-select-color {
    display: flex;
    align-items: center;
    justify-content: center;
}

#selected-color-preview {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
}

/* Action Buttons - Consistent Height */
.actions-section .toggle-btn {
    min-height: 80px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.actions-section .btn-top-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Like Button - Facebook Style */
.like-btn .btn-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.like-btn.liked .btn-title {
    color: #1877f2;
}

.like-btn .like-count {
    font-size: 14px;
    font-weight: 600;
    color: #65676b;
    background-color: #f0f2f5;
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
}

.like-btn.liked .like-count {
    background-color: #e7f3ff;
    color: #1877f2;
}

.like-btn:hover {
    background-color: #f0f2f5;
}

.like-btn.liked:hover {
    background-color: #e7f3ff;
}