/* ============================================
   RFID Dijital Kartvizit Sistemi - CSS
   ============================================ */

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

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --light-bg: #f3f4f6;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
}

/* ============================================
   Container ve Layout
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.container-sm {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ============================================
   Header / Navigation
   ============================================ */

header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* ============================================
   Forms
   ============================================ */

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

input, textarea, select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #059669;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* ============================================
   Cards
   ============================================ */

.card {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
}

.card-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

/* ============================================
   Alerts / Messages
   ============================================ */

.alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--secondary-color);
}

.alert-error {
    background-color: #fee2e2;
    color: #7f1d1d;
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background-color: #fef3c7;
    color: #78350f;
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background-color: #dbeafe;
    color: #0c2d6b;
    border-left: 4px solid var(--primary-color);
}

/* ============================================
   Profile Page
   ============================================ */

.profile-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.profile-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.profile-name {
    font-size: 28px;
    font-weight: bold;
    margin: 10px 0;
}

.profile-company {
    font-size: 16px;
    opacity: 0.9;
}

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

.profile-section {
    margin-bottom: 25px;
}

.profile-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.profile-icon {
    color: var(--primary-color);
    min-width: 20px;
}

.profile-label {
    color: var(--text-light);
    font-size: 13px;
}

.profile-value {
    font-size: 16px;
    font-weight: 500;
}

.profile-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.profile-actions a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background-color: var(--light-bg);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 14px;
}

.profile-actions a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ============================================
   Admin Dashboard
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 10px 0;
}

.stat-label {
    color: var(--text-light);
    font-size: 14px;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th {
    background-color: var(--light-bg);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
}

td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

tr:hover {
    background-color: var(--light-bg);
}

/* ============================================
   Mobile Responsive
   ============================================ */

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    .nav-links {
        gap: 15px;
        font-size: 14px;
    }

    .profile-name {
        font-size: 24px;
    }

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

    .profile-actions {
        flex-direction: column;
    }

    .profile-actions a {
        justify-content: center;
        width: 100%;
    }

    input, textarea, select {
        font-size: 16px; /* Mobilde zoom önlemek için */
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 12px 16px;
        width: 100%;
    }

    .card {
        padding: 15px;
    }

    .profile-header {
        padding: 30px 15px;
    }

    .profile-body {
        padding: 20px 15px;
    }
}
/* ============================================
   RESPONSIVE GRID - MOBİL UYUMLULUĞU
   ============================================ */

@media (max-width: 768px) {
    /* Ad/Soyad ve Butonlar Grid */
    .responsive-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Sosyal Medya Grid */
    .responsive-grid-social {
        grid-template-columns: 1fr !important;
    }
    
    /* Form grupları */
    .form-group {
        width: 100%;
    }
    
    /* Butonlar */
    .btn-block {
        width: 100%;
    }
}

@media (max-width: 480px) {
    /* Küçük telefonlar için ek ayarlar */
    .container-sm {
        padding: 10px !important;
    }
    
    .card {
        padding: 15px !important;
    }
    
    input, textarea, select {
        font-size: 16px !important;
    }
    
    button, .btn {
        padding: 12px 16px !important;
        font-size: 14px !important;
        min-height: 44px;
    }
    
    .responsive-grid {
        gap: 10px !important;
    }
}