* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #f5f5f5;
}

.app {
    min-height: 100vh;
}

.nav {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 2rem;
    display: flex;
    gap: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-user {
    color: white;
    font-size: 0.85rem;
    opacity: 0.9;
}

.nav-logout {
    padding: 0.4rem 0.8rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 5px;
    color: white;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-logout:hover {
    background: rgba(255,255,255,0.25);
}

.nav-time {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    min-width: 150px;
    text-align: center;
}

.nav-buttons button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
    font-size: 1rem;
}

.nav-buttons button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.nav-buttons button.active {
    background: white;
    color: #667eea;
}

.nav-link {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.3);
}

.nav-link.active {
    background: white;
    color: #667eea;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* Home Page Styles */
.home-page {
    min-height: calc(100vh - 70px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.home-container {
    text-align: center;
    color: white;
    max-width: 800px;
}

.home-container h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.action-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-block;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.info-card p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Admin Panel Styles */
.admin-panel {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid #f0f0f0;
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.admin-container h1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-align: left;
}

.page-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
}

.action-buttons-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.hasta-form {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.15);
    margin-bottom: 2rem;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hasta-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #2d3748;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.form-group label::before {
    content: '';
    width: 3px;
    height: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    color: #2d3748;
    font-weight: 500;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 12px;
    padding-right: 3rem;
}

.form-group input:hover,
.form-group select:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), 0 4px 16px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.form-group input:valid:not(:focus),
.form-group select:valid:not(:focus) {
    border-color: #48bb78;
    background: #f0fff4;
}

.quick-time-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-time-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.quick-time-btn:active {
    transform: translateY(0);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #667eea;
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1.25rem 2rem;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    margin-top: 2rem;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.45);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.form-help-text {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.25rem;
    font-style: italic;
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.2rem;
    pointer-events: none;
}

.success-message {
    background: #4caf50;
    color: white;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.hasta-tipi-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    color: #4a5568;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.hasta-tipi-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s;
}

.hasta-tipi-btn:hover::before {
    left: 100%;
}

.hasta-tipi-btn:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
}

.hasta-tipi-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

.hasta-tipi-btn.active::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.hastalar-listesi {
    margin-top: 2rem;
}

.hastalar-listesi h2 {
    color: #333;
    margin-bottom: 1.5rem;
}

/* Arama ve Filtreleme */
.search-filter-container {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.search-box {
    position: relative;
    margin-bottom: 1rem;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #999;
}

.search-box input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 3rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    box-sizing: border-box;
}

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

.filter-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
}

.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
    background: #f8f9ff;
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

/* Section Header - Modern Kompakt */
.hasta-section {
    margin-bottom: 1.5rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #e8e8e8;
}

.section-header h3 {
    color: #444;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.section-count {
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

/* Buton İyileştirmeleri */
.btn-primary-action {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.btn-secondary-action {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.hekim-yonetimi {
    margin-bottom: 2rem;
}

.hekim-yonetimi h2 {
    color: #333;
    margin-bottom: 1rem;
}

.btn-add-hekim {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-add-hekim:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.hekimler-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.hekim-kart {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
    position: relative;
}

.hekim-kart:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hekim-resim {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid #e0e0e0;
    display: block;
}

.hekim-adi {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.hekim-renk-gosterge {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin: 0.5rem auto;
    border: 2px solid #e0e0e0;
}

.hekim-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
}

.btn-edit-hekim, .btn-delete-hekim {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-edit-hekim {
    background: #2196f3;
    color: white;
}

.btn-edit-hekim:hover {
    background: #1976d2;
}

.btn-delete-hekim {
    background: #f44336;
    color: white;
}

.btn-delete-hekim:hover {
    background: #d32f2f;
}

#hekim-resim-preview img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 50%;
    border: 3px solid #e0e0e0;
    margin-top: 0.5rem;
}

.hastalar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* =====================================================
   AKTİF HASTALAR TABLO STİLLERİ
   ===================================================== */

.aktif-hastalar-table {
    max-height: none;
}

.hasta-liste-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.85rem;
}

.hasta-liste-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.hasta-liste-table th {
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.8rem;
    white-space: nowrap;
}

.hasta-liste-table tbody tr {
    transition: all 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.hasta-liste-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.08);
}

.hasta-liste-table tbody tr:nth-child(even) {
    background: #f8f9ff;
}

.hasta-liste-table tbody tr:nth-child(even):hover {
    background: rgba(102, 126, 234, 0.12);
}

.hasta-liste-table tbody tr.acil-row {
    background: rgba(255, 68, 68, 0.08);
    animation: acilRowPulse 2s infinite;
}

@keyframes acilRowPulse {
    0%, 100% { background: rgba(255, 68, 68, 0.08); }
    50% { background: rgba(255, 68, 68, 0.15); }
}

.hasta-liste-table td {
    padding: 0.6rem 0.4rem;
    vertical-align: middle;
    text-align: center;
}

.hasta-liste-table .hasta-adi-cell {
    text-align: left;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Hekim Badge Mini */
.hekim-badge-mini {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Tip Toggle Mini */
.tip-toggle-mini {
    display: inline-flex;
    gap: 0;
    justify-content: center;
    background: #e8e8e8;
    border-radius: 6px;
    padding: 2px;
}

.tip-mini {
    width: 26px;
    height: 24px;
    border: none;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    background: transparent;
    color: #999;
    transition: all 0.2s;
}

.tip-mini:hover {
    background: rgba(255,255,255,0.5);
    color: #666;
}

.tip-mini.active.yeni {
    background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(67, 160, 71, 0.3);
}

.tip-mini.active.eski {
    background: linear-gradient(135deg, #42a5f5 0%, #1e88e5 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(30, 136, 229, 0.3);
}

/* Süre Badge Mini */
.sure-badge-mini {
    display: inline-block;
    padding: 0.3rem 0.5rem;
    background: linear-gradient(135deg, #8b0000 0%, #6b0000 100%);
    color: white;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

/* Durum Buton Grubu - Yeni Tasarım */
.durum-btn-grup {
    display: inline-flex;
    gap: 0;
    justify-content: center;
    background: #e8e8e8;
    border-radius: 6px;
    padding: 2px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.dbtn {
    padding: 0.35rem 0.5rem;
    border: none;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    color: #888;
    position: relative;
    min-width: 42px;
}

.dbtn:hover {
    background: rgba(255,255,255,0.5);
    color: #555;
}

.dbtn.aktif {
    color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transform: scale(1.02);
}

/* Yok/Alınmadı - Kırmızı */
.dbtn.yok.aktif {
    background: linear-gradient(135deg, #ef5350 0%, #e53935 100%);
}

/* Var/Alındı - Yeşil */
.dbtn.var.aktif {
    background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%);
}

/* Eski/Mevcut - Mavi */
.dbtn.eski.aktif {
    background: linear-gradient(135deg, #42a5f5 0%, #1e88e5 100%);
}

/* Hover efektleri - aktif olmayan */
.dbtn.yok:not(.aktif):hover {
    background: rgba(239, 83, 80, 0.15);
    color: #ef5350;
}

.dbtn.var:not(.aktif):hover {
    background: rgba(102, 187, 106, 0.15);
    color: #66bb6a;
}

.dbtn.eski:not(.aktif):hover {
    background: rgba(66, 165, 245, 0.15);
    color: #42a5f5;
}

/* Acil Buton Mini */
.acil-btn-mini {
    padding: 0.35rem 0.6rem;
    border: 2px solid #ffcdd2;
    border-radius: 6px;
    background: #fff5f5;
    font-size: 0.65rem;
    font-weight: 700;
    cursor: pointer;
    color: #e57373;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

.acil-btn-mini:hover {
    border-color: #ef5350;
    background: #ffebee;
    color: #ef5350;
}

.acil-btn-mini.aktif {
    background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%);
    border-color: transparent;
    color: white;
    animation: acilMiniPulse 1.5s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(255, 82, 82, 0.4);
}

@keyframes acilMiniPulse {
    0%, 100% { 
        box-shadow: 0 2px 8px rgba(255, 82, 82, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 4px 16px rgba(255, 82, 82, 0.6);
        transform: scale(1.03);
    }
}

/* İşlem Buttons */
.islem-buttons {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.tamamla-mini {
    padding: 0.4rem 0.7rem;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(67, 160, 71, 0.3);
}

.tamamla-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 160, 71, 0.4);
    background: linear-gradient(135deg, #81c784 0%, #66bb6a 100%);
}

.sil-mini {
    padding: 0.4rem 0.6rem;
    border: none;
    border-radius: 6px;
    background: #ffebee;
    color: #e53935;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #ffcdd2;
}

.sil-mini:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #ef5350 0%, #e53935 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 3px 8px rgba(229, 57, 53, 0.3);
}

/* Responsive */
@media (max-width: 992px) {
    .hasta-liste-table {
        font-size: 0.75rem;
    }
    
    .hasta-liste-table th,
    .hasta-liste-table td {
        padding: 0.4rem 0.25rem;
    }
    
    .dt-btn {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
    
    .tamamla-mini,
    .sil-mini {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }
}

.hasta-kart {
    background: white;
    padding: 1.75rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 5px solid #667eea;
    position: relative;
    overflow: hidden;
}

.hasta-kart::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.hasta-kart:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hasta-kart:hover::before {
    opacity: 1;
}

.hekim-badge {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    margin-top: 0.5rem;
}

.hasta-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.hasta-header h3 {
    color: #333;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

.delete-btn {
    background: #f44336;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    line-height: 1;
}

.delete-btn:hover {
    background: #d32f2f;
}

.hasta-detay p {
    margin-bottom: 0.75rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    line-height: 1.5;
}

.hasta-detay p strong {
    color: #333;
    font-weight: 600;
    min-width: 120px;
}

.hasta-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.hasta-info-item .info-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.hasta-info-item .info-label {
    font-weight: 600;
    color: #555;
    min-width: 100px;
}

.hasta-info-item .info-value {
    color: #333;
    flex: 1;
}

.elapsed-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #8b0000 0%, #6b0000 100%);
    color: white;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    margin-top: 0.5rem;
}

.hasta-detay strong {
    color: #333;
    margin-right: 0.5rem;
}

.durum-buttons-container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.durum-button {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
    flex: 1;
    min-width: 80px;
    text-align: center;
}

.durum-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.durum-button.active {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 0 0 5px currentColor, 0 6px 20px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.durum-button.danger {
    background-color: #e57373;
}

.durum-button.danger:hover {
    background-color: #ef5350;
}

.durum-button.success {
    background-color: #81c784;
}

.durum-button.success:hover {
    background-color: #66bb6a;
}

.durum-button.info {
    background-color: #2196f3;
}

.durum-button.info:hover {
    background-color: #42a5f5;
}

.durum-button.acil {
    background-color: #ff4444;
    animation: pulse-acil-button 2s ease-in-out infinite;
}

.durum-button.acil:hover {
    background-color: #ff3333;
}

.durum-button.acil.active {
    background-color: #ff0000;
    animation: pulse-acil-button-active 1.5s ease-in-out infinite;
}

@keyframes pulse-acil-button {
    0%, 100% {
        box-shadow: 0 4px 8px rgba(255, 68, 68, 0.4);
    }
    50% {
        box-shadow: 0 4px 12px rgba(255, 68, 68, 0.6);
    }
}

@keyframes pulse-acil-button-active {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 0 0 5px #ff0000, 0 6px 20px rgba(255, 0, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 0 0 6px #ff0000, 0 6px 25px rgba(255, 0, 0, 0.7);
    }
}

/* Loading Skeleton */
.loading-skeleton {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.skeleton-card {
    background: white;
    padding: 1.75rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-left: 5px solid #e2e8f0;
}

.skeleton-card::before {
    content: '';
    display: block;
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    margin-bottom: 1rem;
    animation: skeleton-shimmer 1.5s infinite;
}

@keyframes skeleton-loading {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Empty State */
.empty-state {
    grid-column: 1/-1;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-radius: 16px;
    border: 2px dashed #e2e8f0;
    animation: fadeInUp 0.6s ease-out;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.6;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.empty-state-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.empty-state-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.empty-state-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* Improved Card Styles */
.hasta-kart {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    padding: 1.75rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 5px solid #667eea;
    position: relative;
    overflow: hidden;
    animation: cardSlideIn 0.5s ease-out;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hasta-kart::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.hasta-kart:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-left-width: 6px;
}

.hasta-kart:hover::after {
    opacity: 1;
}

/* Section Header Override - Kaldırıldı, yukarıdaki kullanılıyor */
}

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

/* Improved Search Box */
.search-filter-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2.5rem;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    background: #ffffff;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1), 0 4px 16px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    color: #999;
    transition: color 0.3s;
}

.search-box input:focus + .search-icon,
.search-box:focus-within .search-icon {
    color: #667eea;
}

/* Improved Filter Buttons */
.filter-btn {
    padding: 0.7rem 1.4rem;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #666;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

/* Improved Action Buttons */
.btn-primary-action,
.btn-secondary-action {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-primary-action::before,
.btn-secondary-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary-action:hover::before,
.btn-secondary-action:hover::before {
    left: 100%;
}

/* Improved Info Items */
.hasta-info-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.hasta-info-item:hover {
    background: rgba(102, 126, 234, 0.03);
    border-radius: 6px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.hasta-info-item:last-child {
    border-bottom: none;
}

.hasta-info-item .info-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    filter: grayscale(0.3);
    transition: filter 0.2s;
}

.hasta-info-item:hover .info-icon {
    filter: grayscale(0);
}

.hasta-info-item .info-label {
    font-weight: 700;
    color: #4a5568;
    min-width: 120px;
    font-size: 0.9rem;
}

.hasta-info-item .info-value {
    color: #2d3748;
    flex: 1;
    font-weight: 500;
}

/* Improved Status Buttons */
.durum-button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    flex: 1;
    min-width: 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.durum-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.durum-button:active::before {
    width: 300px;
    height: 300px;
}

.durum-button.active {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 0 0 5px currentColor, 0 8px 24px rgba(0, 0, 0, 0.25);
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

/* Improved Delete Button */
.delete-btn {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}

.delete-btn:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

/* Improved Elapsed Time Badge */
.elapsed-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #8b0000 0%, #6b0000 100%);
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    margin-top: 0.5rem;
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
    animation: pulse-red 2s ease-in-out infinite;
}

@keyframes pulse-red {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 16px rgba(139, 0, 0, 0.5);
    }
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .home-container h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hastalar-grid {
        grid-template-columns: 1fr;
    }

    .loading-skeleton {
        grid-template-columns: 1fr;
    }

    .search-filter-container {
        padding: 1.5rem;
    }

    .section-header {
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .empty-state {
        padding: 3rem 1.5rem;
    }

    .empty-state-icon {
        font-size: 3rem;
    }

    .empty-state-title {
        font-size: 1.1rem;
    }

    .action-buttons-container {
        justify-content: center;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }
}

/* Rapor Stilleri */
.rapor-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.rapor-container::-webkit-scrollbar {
    width: 6px;
}

.rapor-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.rapor-container::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.rapor-container::-webkit-scrollbar-thumb:hover {
    background: #5568d3;
}

.rapor-item {
    transition: background 0.2s;
}

.rapor-item:hover {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 6px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.rapor-item:last-child {
    border-bottom: none;
}

/* =====================================================
   YENİ HASTA KARTI STİLLERİ - İşleme Alınanlar
   ===================================================== */

.hasta-kart-yeni {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 5px solid var(--hekim-color, #667eea);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hasta-kart-yeni:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.hasta-kart-yeni.acil {
    border-left-color: #ff4444;
    box-shadow: 0 4px 20px rgba(255, 68, 68, 0.2);
    animation: slideUp 0.4s ease-out, acilPulse 2s infinite;
}

@keyframes acilPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(255, 68, 68, 0.2);
    }
    50% {
        box-shadow: 0 4px 30px rgba(255, 68, 68, 0.4);
    }
}

/* Üst Bar */
.kart-ust-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    border-bottom: 1px solid #e8ecf4;
}

.tip-secimi {
    display: flex;
    gap: 0.25rem;
    background: #e8ecf4;
    padding: 0.2rem;
    border-radius: 8px;
}

.tip-btn {
    padding: 0.3rem 0.75rem;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: #666;
    transition: all 0.2s;
}

.tip-btn:hover {
    background: rgba(255, 255, 255, 0.7);
}

.tip-btn.active.yeni {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
}

.tip-btn.active.eski {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
}

.acil-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: white;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    opacity: 0.5;
}

.acil-toggle:hover {
    border-color: #ff4444;
    opacity: 0.8;
}

.acil-toggle.active {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    border-color: #ff4444;
    opacity: 1;
    animation: acilShake 0.5s ease-in-out infinite;
}

@keyframes acilShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

/* Header */
.kart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 1rem 0.5rem;
}

.hasta-bilgi {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.hasta-adi {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hekim-tag {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    max-width: fit-content;
}

.sil-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #fee;
    color: #f44336;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.sil-btn:hover {
    background: #f44336;
    color: white;
    transform: scale(1.1);
}

/* Zaman Bilgisi */
.kart-zaman {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #f8f9ff;
    margin: 0 0.5rem;
    border-radius: 10px;
}

.zaman-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: #555;
}

.zaman-icon {
    font-size: 1rem;
}

.zaman-label {
    font-weight: 500;
    color: #888;
}

.zaman-value {
    font-weight: 700;
    color: #333;
    font-family: 'Courier New', monospace;
}

.gecen-sure {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, #8b0000 0%, #6b0000 100%);
    color: white;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.sure-icon {
    font-size: 0.9rem;
}

/* İlerleme Çubuğu */
.ilerleme-bar {
    margin: 0.75rem 1rem;
    height: 24px;
    background: #e8ecf4;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.ilerleme-dolgu {
    height: 100%;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    border-radius: 12px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ilerleme-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    font-weight: 700;
    color: #333;
    text-shadow: 0 0 2px white;
}

/* Durum Kontrolleri */
.durum-kontroller {
    padding: 0.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.durum-satir {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: background 0.2s;
}

.durum-satir:hover {
    background: #f0f2f5;
}

.durum-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
}

.durum-secenekler {
    display: flex;
    gap: 0.4rem;
}

.durum-sec {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 2px solid #ddd;
    background: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.durum-sec:hover {
    transform: scale(1.1);
    border-color: #999;
}

.durum-sec.active {
    transform: scale(1.15);
    border-width: 3px;
}

.durum-sec.active.red {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-color: #f44336;
}

.durum-sec.active.green {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-color: #4caf50;
}

.durum-sec.active.blue {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #2196f3;
}

/* Tamamla Butonu */
.tamamla-btn {
    width: calc(100% - 2rem);
    margin: 0.75rem 1rem 1rem;
    padding: 0.9rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tamamla-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.tamamla-btn.hazir {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    animation: readyPulse 1.5s infinite;
}

@keyframes readyPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    }
    50% {
        box-shadow: 0 6px 25px rgba(76, 175, 80, 0.5);
    }
}

.tamamla-btn.hazir:hover {
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .hasta-kart-yeni {
        border-radius: 12px;
    }
    
    .kart-header {
        padding: 0.75rem 0.75rem 0.5rem;
    }
    
    .hasta-adi {
        font-size: 1rem;
    }
    
    .kart-zaman {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
        margin: 0 0.5rem;
    }
    
    .zaman-item {
        justify-content: center;
    }
    
    .gecen-sure {
        justify-content: center;
    }
    
    .durum-satir {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .durum-label {
        text-align: center;
    }
    
    .durum-secenekler {
        justify-content: center;
    }
}
