* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #000000 100%, #000000 100%);
    min-height: 100vh;
    color: #ffffff;
}

/* Login Sayfas覺 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 6px 30px rgba(255, 255, 255, 0.1);
}

.login-box h1 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 28px;
}

.login-box p {
    text-align: center;
    color: #000000;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.1);
    color: #9e9e9e;
    font-size: 16px;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.2);
}

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    color: #000000;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.4);
}

.error-message {
    background: rgba(255, 82, 82, 0.2);
    color: #ff5252;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.success-message {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}


/* Admin Panel Header */
.header {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
}

.header h2 {
    font-size: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info span {
    color: #aaa;
}

.role-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.role-personel { background: #4caf50; }
.role-yetkili { background: #ff9800; }
.role-admin { background: #f44336; }

.logout-btn {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Admin Panel Grid */
.admin-container {
    padding: 30px;
}

.welcome-section {
    text-align: center;
    margin-bottom: 40px;
}

.welcome-section h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.welcome-section p {
    color: #aaa;
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.panel-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: #fff;
    display: block;
}

.panel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.panel-card .icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.panel-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.panel-card p {
    color: #aaa;
    font-size: 14px;
}

.panel-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.panel-card.disabled:hover {
    transform: none;
    box-shadow: none;
}


/* Form Section */
.form-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
}

.form-section h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.form-select {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
}

.form-select option {
    background: #1a1a2e;
    color: #fff;
}

/* Table Section */
.table-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    overflow-x: auto;
}

.table-section h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table th {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
}

.data-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.delete-btn {
    padding: 6px 15px;
    background: #f44336;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
}

.delete-btn:hover {
    background: #d32f2f;
}

.text-muted {
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .user-info {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .panel-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px;
        font-size: 14px;
    }
}


/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.edit-btn {
    padding: 6px 15px;
    background: #2196f3;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
}

.edit-btn:hover {
    background: #1976d2;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    display: inline-block;
    text-decoration: none;
    text-align: center;
    margin-left: 10px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: none;
    box-shadow: none;
}
