/* General Styles */

/* Admin Panel Altın fiyat alanı */

:root {
    --primary-color: #d4af37;
    --secondary-color: #b8860b;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    color: #007bff;
}

a:hover {
    color: #0056b3;
}

/* Header & Navbar */
.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Cards */
.card {
    margin-bottom: 20px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-weight: bold;
}

/* Product Card */
.product-card img {
    height: 200px;
    object-fit: contain;
}

/* Category & Brand Cards */
.category-card img, .brand-card img {
    height: 150px;
    object-fit: contain;
}

/* Buttons */
.btn {
    border-radius: 4px;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

/* Forms */
.form-control {
    border-radius: 4px;
}

/* Footer */
footer {
    margin-top: 2rem;
}

footer a:hover {
    text-decoration: underline;
}

/* Admin Dashboard */
.admin-sidebar {
    background-color: #343a40;
    min-height: calc(100vh - 56px);
    padding-top: 20px;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.admin-sidebar .nav-link:hover {
    color: #fff;
}

.admin-sidebar .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Admin Table */
.table-responsive {
    border-radius: 5px;
    overflow: hidden;
}

/* Admin Forms */
.admin-form {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
} 



/* Admin Panel Altın fiyat alanı */

.navbar {
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.navbar-brand {
    color: var(--primary-color) !important;
    font-weight: bold;
    font-size: 1.5rem;
}

.price-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 15px;
    transition: all 0.3s ease;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.card-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.card-text {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
    color: var(--light-color);
}

.positive-change {
    color: #28a745;
}

.negative-change {
    color: #dc3545;
}

.update-time {
    font-size: 0.9rem;
    color: #888;
    margin-top: 0.5rem;
}

.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.refresh-btn {
    background: var(--primary-color);
    border: none;
    color: var(--dark-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

.refresh-btn i {
    margin-right: 5px;
}
.countdown {
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-left: 10px;
    display: inline-block;
}

.countdown i {
    margin-right: 5px;
}

.refresh-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
}

.refresh-btn:disabled i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}