:root {
    --primary-color: #1D61E7;
    --background-color: #EDF1F3;
    --text-color: #333;
    --error-color: #FF4444;
    --success-color: #00C851;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #F5F5F5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    padding-top: 90px; /* PC için navbar (70px) + boşluk (20px) */
}

/* Search ve filter alanları için container */
.search-filters-container {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.search-container {
    position: relative;
    margin-bottom: 16px;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    font-size: 16px; /* iOS zoom önleme */
    background: white;
    box-sizing: border-box;
}

.filters {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    width: 100%;
}

.filters select {
    flex: 1; /* Eşit genişlik */
    min-width: 120px;
    padding: 10px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.button {
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 400px;
}

.login-card h1 {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 24px;
}

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

.register-link {
    text-align: center;
    margin-top: 20px;
}

.register-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.register-link a:hover {
    text-decoration: underline;
}

select.input {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

/* Places grid - PC için düzeltilmiş düzen */
.places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 400px)); /* PC için daha geniş ve maksimum genişlik */
    gap: 24px; /* Kartlar arası daha fazla boşluk */
    padding: 20px 0;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
}

.place-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.2s;
    cursor: pointer;
    border-top: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 92%;
    min-width: 300px; /* Minimum genişlik garantisi */
}

.place-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.place-card h3 {
    color: var(--text-color);
    margin: 0;
    font-size: 18px;
}

.place-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.place-branch {
    color: var(--primary-color);
    font-weight: 500;
    margin: 0;
}

.place-location {
    color: #666;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.place-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.place-status {
    background: #E8F5E9;
    color: #2E7D32;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.place-points {
    background: #E3F2FD;
    color: #1976D2;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.place-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filters {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.filters select {
    min-width: 150px;
    padding: 10px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
}

.button-outline {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid #1D61E7;
    border-radius: 6px;
    color: #1D61E7;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.button-outline:hover {
    background: #1D61E7;
    color: white;
}

.profile-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin-top: 20px;
}

.profile-info label {
    display: block;
    margin-bottom: 8px;
    color: #666;
}

.selections-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.selection-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.selection-number {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    margin-right: 15px;
}

.selection-details h3 {
    margin: 0;
    color: var(--text-color);
}

.selection-details p {
    margin: 5px 0 0;
    color: #666;
}

.welcome-card {
    max-width: 600px;
    margin: 100px auto;
    text-align: center;
}

.welcome-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.welcome-card h2 {
    color: var(--text-color);
    margin-bottom: 30px;
}

.no-data {
    text-align: center;
    padding: 20px;
    color: #666;
    grid-column: 1 / -1;
}

.search-container {
    position: relative;
    margin-bottom: 16px;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    font-size: 16px; /* iOS zoom önleme */
    background: white;
    box-sizing: border-box;
}

.search-input:focus {
    border-color: #1D61E7;
    outline: none;
}

.search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 4px;
    border-radius: 4px;
}

.search-clear:hover {
    background: #f5f5f5;
}

.quota-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.quota-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quota-number {
    padding: 2px 10px;
    border: 1.5px solid #DDDDDF;
    border-radius: 10px;
    font-weight: bold;
    font-size: 14px;
}

.quota-label {
    font-size: 12px;
    font-weight: 600;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.place-title {
    font-size: 16px;
    margin: 8px 0;
}

.place-info {
    font-size: 11px;
    color: #AFAFB6;
}

.divider {
    margin: 0 4px;
}

.place-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

.applicant-count {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
}

.header-row {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1A1C1E;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}

/* Place detail sayfası için stiller */
.detail-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.detail-card .unit-title {
    font-size: 18px;
    font-weight: 600;
    color: #1A1C1E;
    margin: 12px 0 8px 0;
    line-height: 1.3;
}

.detail-card .info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #AFAFB6;
    font-size: 13px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.detail-card .info-row .divider {
    margin: 0 4px;
    color: #AFAFB6;
}

.desc-row {
    margin-top: 16px;
    margin-bottom: 16px;
}

.desc-label {
    color: #AFAFB6;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}

.desc-text {
    color: #AFAFB6;
    font-size: 12px;
    margin: 0;
    line-height: 1.4;
}

.chooser-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 24px 0 16px 0;
    padding-top: 16px;
    border-top: 1px solid #EDF1F3;
}

.chooser-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1D61E7;
    margin: 0;
}

.applicant-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #666;
}

.applicant-count svg {
    width: 16px;
    height: 16px;
    color: #666;
}

.choices-list {
    border-top: 1px solid #EDF1F3;
}

.choice-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #EDF1F3;
}

.choice-row:last-child {
    border-bottom: none;
}

.choice-order {
    min-width: 30px;
    color: #1A1C1E;
    font-size: 14px;
    font-weight: 600;
    margin-right: 12px;
}

.names-wrap {
    flex: 1;
}

.choice-name {
    color: #1D61E7;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    margin-right: 8px;
    transition: color 0.2s;
}

.choice-name:hover {
    color: #1750c7;
    text-decoration: underline;
}

.no-choice {
    color: #AFAFB6;
    font-size: 13px;
    font-style: italic;
}

.info-note {
    color: #AFAFB6;
    font-size: 12px;
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #EDF1F3;
    line-height: 1.4;
}

/* Tablet için responsive düzenlemeler */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
        padding-top: 50px; /* Tablet için navbar (60px) + boşluk (20px) */
    }
    
    .search-filters-container {
        max-width: none;
        padding: 0 16px;
    }
    
    .header {
        padding: 16px 0;
    }
    
    .header-title {
        font-size: 24px;
        text-align: center;
    }
    
    .search-input {
        font-size: 16px;
        padding: 14px 40px 14px 16px;
    }
    
    .filters {
        margin: 16px 0;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .filters select {
        min-width: 140px;
        flex: 1;
        font-size: 14px;
        padding: 12px;
    }
    
    .places-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Tablet için farklı değer */
        gap: 20px;
        padding: 16px 0;
        max-width: none;
    }
    
    .place-card {
        padding: 16px;
        min-width: auto; /* Tablet'te min-width kaldır */
    }
    
    .place-title {
        font-size: 15px;
    }
    
    .place-info {
        font-size: 12px;
    }
    
    .quota-number {
        font-size: 13px;
    }
    
    .quota-label {
        font-size: 11px;
    }
    
    .status-badge {
        font-size: 11px;
    }
    
    .button-outline {
        width: 100%;
        justify-content: center;
        padding: 10px;
        font-size: 14px;
    }
    
    .empty-state {
        padding: 32px 16px;
        margin: 16px;
    }
    
    .empty-state h3 {
        font-size: 16px;
    }
    
    .empty-state p {
        font-size: 14px;
    }
}

/* Mobil için responsive düzenlemeler */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
        padding-top: 46px; /* Mobil için navbar (56px) + boşluk (20px) */
    }
    
    .search-filters-container {
        padding: 0;
    }
    
    .header {
        padding: 12px 0;
        text-align: center;
    }
    
    .header-title {
        font-size: 20px;
    }
    
    .search-input {
        padding: 12px 36px 12px 14px;
        font-size: 16px;
    }
    
    .search-clear {
        right: 6px;
    }
    
    .filters {
        margin: 12px 0;
        flex-direction: column;
    }
    
    .filters select {
        width: 100%;
        min-width: auto;
        padding: 12px;
        font-size: 16px;
    }
    
    .places-grid {
        grid-template-columns: 1fr; /* Mobilde tek kolon */
        gap: 12px;
        padding: 12px 0;
    }
    
    .place-card {
        padding: 14px;
        gap: 10px;
        min-width: auto; /* Mobilde min-width kaldır */
    }
    
    .quota-row {
        margin-bottom: 10px;
    }
    
    .place-title {
        font-size: 14px;
        margin: 6px 0;
    }
    
    .place-info {
        font-size: 11px;
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .divider {
        margin: 0 2px;
    }
    
    .place-footer {
        margin-top: 12px;
    }
    
    .button-outline {
        padding: 8px;
        font-size: 13px;
    }
    
    .empty-state {
        padding: 24px 12px;
    }
    
    .empty-state h3 {
        font-size: 15px;
    }
    
    .empty-state p {
        font-size: 13px;
    }
}

/* Çok küçük ekranlar */
@media (max-width: 320px) {
    .container {
        padding: 0 8px;
        padding-top: 72px; /* Çok küçük ekranlar için navbar (52px) + boşluk (20px) */
    }
    
    .header-title {
        font-size: 18px;
    }
    
    .search-input {
        padding: 10px 32px 10px 12px;
        font-size: 16px;
    }
    
    .place-card {
        padding: 12px;
    }
    
    .place-title {
        font-size: 13px;
    }
    
    .place-info {
        font-size: 10px;
    }
    
    .button-outline {
        padding: 6px;
        font-size: 12px;
    }
}