/**
 * Design Review System - Styles
 * Toolbar, Sidebar, Pins, Modals
 */

/* ============================================
   TOOLBAR STYLES
   ============================================ */

#design-review-toolbar {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

#design-review-toolbar .toolbar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

#design-review-toolbar .toolbar-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

#design-review-toolbar .btn-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s;
}

#design-review-toolbar .btn-close:hover {
    opacity: 1;
}

#design-review-toolbar .toolbar-section {
    margin-bottom: 20px;
}

#design-review-toolbar .toolbar-section h4 {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px 0;
}

#design-review-toolbar .btn-mode,
#design-review-toolbar .btn-tool {
    display: block;
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 6px;
    background: #f3f4f6;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    text-align: left;
    transition: all 0.2s;
}

#design-review-toolbar .btn-mode:hover,
#design-review-toolbar .btn-tool:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

#design-review-toolbar .btn-mode:active,
#design-review-toolbar .btn-tool:active {
    transform: scale(0.98);
}

#design-review-toolbar .btn-clear {
    display: block;
    width: 100%;
    padding: 10px 12px;
    background: #fee2e2;
    border: 2px solid #fecaca;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #991b1b;
    transition: all 0.2s;
}

#design-review-toolbar .btn-clear:hover {
    background: #fecaca;
    border-color: #fca5a5;
}

/* ============================================
   SIDEBAR STYLES
   ============================================ */

#design-review-sidebar {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

#design-review-sidebar .sidebar-header {
    padding: 16px;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#design-review-sidebar .sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

#design-review-sidebar .pin-count {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 4px;
}

#design-review-sidebar .sidebar-filters {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
}

#design-review-sidebar .filter-status {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

#design-review-sidebar .sidebar-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

#design-review-sidebar .no-pins {
    text-align: center;
    color: #9ca3af;
    padding: 40px 20px;
    font-size: 14px;
}

#design-review-sidebar .pin-item {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    transition: all 0.2s;
    cursor: pointer;
}

#design-review-sidebar .pin-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

#design-review-sidebar .pin-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

#design-review-sidebar .pin-number {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}

#design-review-sidebar .pin-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

#design-review-sidebar .pin-badge.danger {
    background: #fee2e2;
    color: #991b1b;
}

#design-review-sidebar .pin-badge.warning {
    background: #fef3c7;
    color: #92400e;
}

#design-review-sidebar .pin-badge.info {
    background: #dbeafe;
    color: #1e40af;
}

#design-review-sidebar .pin-badge.light {
    background: #f3f4f6;
    color: #4b5563;
}

#design-review-sidebar .pin-item h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

#design-review-sidebar .pin-item p {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

#design-review-sidebar .pin-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#design-review-sidebar .pin-status {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 4px;
}

#design-review-sidebar .btn-sm {
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

#design-review-sidebar .btn-sm:hover {
    background: #5568d3;
}

/* ============================================
   PIN BADGES (auf Seite)
   ============================================ */

.design-review-pin .pin-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.design-review-pin .pin-badge:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6);
}

.design-review-pin .pin-badge.danger {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.design-review-pin .pin-badge.warning {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.design-review-pin .pin-badge.info {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.design-review-pin .pin-badge.success {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.design-review-pin .pin-popup {
    position: absolute;
    top: 50px;
    left: 0;
    min-width: 280px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 16px;
    z-index: 1000002;
}

.design-review-pin .pin-popup::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 16px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.design-review-pin .pin-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.design-review-pin .pin-popup-header strong {
    font-size: 14px;
    color: #1f2937;
}

.design-review-pin .pin-popup p {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

.design-review-pin .pin-meta {
    margin-bottom: 12px;
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
}

.design-review-pin .pin-meta small {
    font-size: 11px;
    color: #9ca3af;
}

.design-review-pin .btn-pin-edit {
    width: 100%;
    padding: 8px 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.design-review-pin .btn-pin-edit:hover {
    background: #5568d3;
}

/* ============================================
   PIN MODAL
   ============================================ */

.pin-modal {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.pin-modal-header {
    padding: 20px;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pin-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.pin-modal-body {
    padding: 20px;
}

.pin-modal .pin-preview {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 2px solid #e5e7eb;
}

.pin-modal .form-group {
    margin-bottom: 16px;
}

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

.pin-modal .form-group input,
.pin-modal .form-group textarea,
.pin-modal .form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
}

.pin-modal .form-group input:focus,
.pin-modal .form-group textarea:focus,
.pin-modal .form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.pin-modal .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pin-modal .pin-info {
    padding: 12px;
    background: #f9fafb;
    border-radius: 6px;
    margin-top: 16px;
}

.pin-modal .pin-info small {
    font-size: 12px;
    color: #6b7280;
}

.pin-modal-footer {
    padding: 16px 20px;
    border-top: 2px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.pin-modal .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.pin-modal .btn-secondary {
    background: #f3f4f6;
    color: #1f2937;
}

.pin-modal .btn-secondary:hover {
    background: #e5e7eb;
}

.pin-modal .btn-primary {
    background: #667eea;
    color: white;
}

.pin-modal .btn-primary:hover {
    background: #5568d3;
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

#design-review-sidebar .sidebar-list::-webkit-scrollbar {
    width: 6px;
}

#design-review-sidebar .sidebar-list::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

#design-review-sidebar .sidebar-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

#design-review-sidebar .sidebar-list::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}
