/* === NOWOCZESNA STRONA WYBORU TRANSAKCJI === */

.modern-start-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f4ff 100%);
    padding: 40px 0;
}

.start-header {
    text-align: center;
    margin-bottom: 50px;
}

.start-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.start-subtitle {
    font-size: 1.1rem;
    color: #484848;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.transaction-selection {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 40px;
    overflow: hidden;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #111111;
    margin-bottom: 25px;
    text-align: center;
}

.transaction-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.transaction-card {
    background: #f8f9fa;
    border: 3px solid #e9ecef;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.transaction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #0094FF, #00E8FF);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.transaction-card.sell::before {
    background: linear-gradient(135deg, #0BD3B8, #59FFBD);
}

.transaction-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: #0094FF;
}

.transaction-card.sell:hover {
    border-color: #0BD3B8;
}

.transaction-card:hover::before,
.transaction-card.selected::before {
    transform: scaleX(1);
}

.transaction-card.selected {
    background: linear-gradient(135deg, #e7f3ff, #f0f8ff);
    border-color: #0094FF;
    box-shadow: 0 8px 25px rgba(0, 148, 255, 0.2);
}

.transaction-card.sell.selected {
    background: linear-gradient(135deg, #e6fff0, #f0fff4);
    border-color: #0BD3B8;
    box-shadow: 0 8px 25px rgba(11, 211, 184, 0.2);
}

.transaction-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #0094FF, #00E8FF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.transaction-card.sell .transaction-icon {
    background: linear-gradient(135deg, #0BD3B8, #59FFBD);
}

.transaction-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #111111;
    margin-bottom: 10px;
}

.transaction-description {
    color: #484848;
    font-size: 0.95rem;
    line-height: 1.5;
}

.property-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.transaction-limit-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px 20px;
    background: #e0f2fe;
    border-radius: 10px;
    border: 1px solid #bae6fd;
    margin: 0 20px 20px 20px;
    font-size: 0.9rem;
    color: #0369a1;
    line-height: 1.5;
}

.transaction-limit-info i {
    color: #0284c7;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.property-cards.visible {
    opacity: 1;
    transform: translateY(0);
}

.property-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: #0094FF;
}

.property-card.selected {
    background: linear-gradient(135deg, #e7f3ff, #f0f8ff);
    border-color: #0094FF;
    box-shadow: 0 4px 15px rgba(0, 148, 255, 0.2);
}

.property-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    background: #0094FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    transition: all 0.3s ease;
}

.property-title {
    font-weight: 600;
    color: #111111;
    margin-bottom: 8px;
}

.property-description {
    color: #6c757d;
    font-size: 0.85rem;
}

.start-button {
    background: linear-gradient(135deg, #0094FF, #00E8FF);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
    opacity: 0.5;
    transform: scale(0.95);
}

.start-button:enabled {
    opacity: 1;
    transform: scale(1);
}

.start-button:hover:enabled {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 148, 255, 0.4);
}

.start-button:disabled {
    cursor: not-allowed;
}

/* Modal Styles */
.property-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    z-index: 1001;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

.modal-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #111111;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #333333;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: #f8f9fa;
    color: #111111;
    transform: scale(1.1);
}

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

/* Fix for existing transaction cards as links */
.transaction-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.transaction-card:hover {
    text-decoration: none;
    color: inherit;
}

/* Active/Selected State for existing transactions */
.transaction-card.selected .transaction-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.transaction-card.buy.selected .transaction-icon {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.transaction-card.sell.selected .transaction-icon {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

/* Responsywność */
@media (max-width: 768px) {
    .modern-start-container {
        padding: 20px 0;
    }
    
    .start-title {
        font-size: 2rem;
    }
    
    .transaction-selection {
        margin: 0 5px;
        padding: 20px 12px;
        border-radius: 15px;
    }
    
    .transaction-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .transaction-card {
        padding: 25px 15px;
    }
    
    .transaction-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .property-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .property-card {
        padding: 15px 8px;
    }
    
    .property-card .property-name {
        font-size: 0.85rem;
    }
    
    .property-card .property-count {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .modern-start-container {
        padding: 15px 0;
    }
    
    .start-title {
        font-size: 1.7rem;
    }
    
    .transaction-selection {
        margin: 0 3px;
        padding: 15px 8px;
    }
    
    .property-cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .property-card {
        padding: 15px 20px;
        display: grid;
        grid-template-columns: 50px 1fr auto;
        align-items: center;
        gap: 15px;
        text-align: left;
    }
    
    .property-card .property-icon {
        margin-bottom: 0;
        justify-self: center;
    }
    
    .property-card .property-name {
        justify-self: start;
        font-size: 1.1rem;
    }
    
    .property-card .property-count {
        justify-self: end;
        font-size: 0.9rem;
        color: #6b7280;
    }
    
    .transaction-limit-info {
        margin: 0 10px 15px 10px;
        padding: 12px 15px;
        font-size: 0.85rem;
    }
    
    .property-card-old-unused {
        padding: 12px 6px;
    }
    
    .modal-content {
        width: 95%;
        padding: 0;
    }
    
    .modal-header {
        padding: 20px 15px 15px;
    }
    
    .modal-body {
        padding: 15px;
    }
}