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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f5f5;
    color: #333;
    font-size: 13px;
    line-height: 1.4;
}

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

.navbar {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 0;
    margin-bottom: 20px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

.navbar-menu {
    display: flex;
    gap: 15px;
}

.nav-link {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 4px;
}

.nav-link:hover {
    background: #f5f5f5;
}

.nav-link-primary {
    background: #1a73e8;
    color: #fff;
}

.nav-link-primary:hover {
    background: #1557b0;
}

.main-content {
    min-height: calc(100vh - 120px);
    padding: 20px 0;
}

.card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 20px;
}

.card-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
}

.card-header h2,
.card-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.card-body {
    padding: 16px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.cards-grid .card-body p {
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
}

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

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    font-size: 12px;
    color: #555;
}

.form-group small {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #888;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #1a73e8;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.form-inline {
    display: flex;
    gap: 8px;
    align-items: center;
}

.form-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.form-row .form-control {
    flex: 1;
    min-width: 150px;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: #1a73e8;
    color: #fff;
}

.btn-success {
    background: #34a853;
    color: #fff;
}

.btn-secondary {
    background: #666;
    color: #fff;
}

.btn-danger {
    background: #ea4335;
    color: #fff;
}

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

.alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 13px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

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

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.data-table th,
.data-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.data-table th {
    background: #f9f9f9;
    font-weight: 600;
    color: #555;
}

.data-table tbody tr:hover {
    background: #fafafa;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-secondary {
    background: #e0e0e0;
    color: #666;
}

.color-badge {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 3px;
    border: 1px solid #ddd;
}

.empty-message {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 13px;
}

.footer {
    background: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 16px 0;
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-top: 40px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    padding: 24px;
    border-radius: 4px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-close {
    float: right;
    font-size: 24px;
    font-weight: 300;
    color: #999;
    cursor: pointer;
}

.modal-close:hover {
    color: #333;
}

.modal-content h3 {
    margin-bottom: 20px;
    font-size: 16px;
}

.tweet-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tweet-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 12px;
}

.tweet-header {
    display: flex;
    gap: 10px;
    
}

.tweet-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.tweet-user-info {
    flex: 1;
}

.tweet-user-name {
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

.tweet-user-handle {
    font-size: 12px;
    color: #666;
}

.tweet-date {
    font-size: 11px;
    color: #999;
}

.tweet-content {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 10px;
}

.tweet-actions {
    display: flex;
    gap: 8px;
}

.tweet-reply-area {
    display: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.tweet-reply-area.active {
    display: block;
}

.tweet-reply-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tweet-reply-textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
}

.tweet-reply-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.tweet-sent-badge {
    display: inline-block;
    padding: 4px 8px;
    background: #d4edda;
    color: #155724;
    border-radius: 3px;
    font-size: 11px;
    margin-top: 8px;
}

.tweet-sent-link {
    color: #1a73e8;
    text-decoration: none;
    font-size: 11px;
}

.filters-area {
    margin-bottom: 20px;
}

.filters-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    padding: 6px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    background: #fff;
}

.filter-chip.active {
    border-color: #1a73e8;
    background: #e8f0fe;
    color: #1a73e8;
}

.header-area {
    background: #fff;
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 20px;
}

.header-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.header-controls input {
    flex: 1;
    min-width: 200px;
}

.metin-preview {
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
}

code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-family: 'Courier New', monospace;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .navbar-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-row .form-control {
        width: 100%;
    }
}

