﻿body {
    font-family: Arial, sans-serif;
}

#container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.proposal-line {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f8f9fa;
    opacity: 1;
    transform-origin: top;
}

    .proposal-line.new {
        animation: slideIn 0.5s ease-out;
    }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.company-name {
    font-weight: bold;
    color: #333;
    min-width: 120px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.company-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.price {
    font-size: 1.2em;
    font-weight: bold;
    color: #007bff;
}

.proposal-no {
    font-size: 0.9em;
    color: #666;
}

.controls {
    display: flex;
    gap: 10px;
}

.highlight {
    background-color: #e8f5e8 !important;
}

.status-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.status-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .status-item:hover {
        background-color: #f5f5f5;
    }

    .status-item.success {
        border-left: 4px solid #28a745;
    }

    .status-item.warning {
        border-left: 4px solid #ffc107;
    }

    .status-item.error {
        border-left: 4px solid #dc3545;
    }

    .status-item.info {
        border-left: 4px solid #17a2b8;
    }

.status-message {
    flex: 1;
    font-size: 0.9em;
    color: #666;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cursor-pointer {
    cursor: pointer;
}

    .cursor-pointer:hover {
        opacity: 0.8;
    }

.status-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
    color: white;
}

.status-time {
    font-size: 0.8em;
    color: #999;
    white-space: nowrap;
    min-width: 60px;
    text-align: right;
}

.status-details-toggle {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-size: 0.8em;
    padding: 0;
}

    .status-details-toggle:hover {
        text-decoration: underline;
    }

.status-details {
    margin-top: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-size: 0.9em;
    color: #666;
}

.detail-label {
    font-weight: bold;
    color: #333;
    margin-right: 5px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toggle-details {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-size: 0.8em;
    padding: 0;
    margin-left: 10px;
    transition: color 0.2s;
}

    .toggle-details:hover {
        color: #0056b3;
        text-decoration: underline;
    }

    .toggle-details i {
        margin-right: 4px;
    }

.status-details {
    margin-top: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-size: 0.9em;
    color: #666;
    animation: slideIn 0.3s ease-out;
}

/* Mobil görünüm düzenlemeleri */
@media (max-width: 768px) {
    /* Mobil alt menü boşluğunu azalt */
    .mobile-nav {
        padding: 0.5rem 0;
        margin-bottom: 0;
    }
    
    .mobile-nav .nav-items {
        margin-bottom: 0;
        padding: 0;
    }
    
    .mobile-nav .nav-item {
        margin: 0;
        padding: 0.5rem;
    }
    
    /* Evrak yükle butonunun mobilde üste çıkması */
    .mobile-document-upload {
        order: -1;
    }
    
    /* Kimlik tipi ve evrak yükle butonlarının mobilde sıralanması */
    .form-mobile-order .row {
        flex-direction: column-reverse;
    }
    
    .form-mobile-order .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Mobilde başlık alanının padding'ini azalt */
    .py-2 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
    
    /* Mobilde card-header padding'ini azalt */
    .card-header h2 {
        font-size: 1.2rem;
        margin-bottom: 0 !important;
    }
}

@media (max-width: 480px) {
    .proposal-line {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .company-name {
        min-width: auto;
        justify-content: center;
    }
    
    .price {
        text-align: center;
    }
    
    .controls {
        justify-content: center;
    }
    
    /* Mobilde evrak yükle butonunun üstte olması */
    .mobile-form-reorder .row {
        display: flex;
        flex-direction: column;
    }
    
    .mobile-form-reorder .col-md-6:last-child {
        order: -1;
        margin-bottom: 1rem;
    }
}

