/* Default Theme for URL Shortener */

/* General styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    color: #212529;
}

.container {
    flex: 1;
}

/* Card styles */
.card {
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-header {
    font-weight: bold;
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.75rem 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.75rem 1.25rem;
    transition: background-color 0.2s;
}

/* Form styles */
.form-control {
    border-radius: 4px;
    border: 1px solid #ced4da;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.input-group {
    transition: all 0.2s ease;
}

.input-group:focus-within {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1);
}

.input-group-text {
    background-color: #f8f9fa;
    border-color: #ced4da;
    transition: all 0.2s ease;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #495057;
}

.form-text {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Link shortener form */
.shortener-form {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.shortener-form:focus-within {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.shortener-form .btn-primary {
    transition: all 0.3s ease;
}

.shortener-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

/* Link cards */
.link-card {
    transition: transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2);
}

.link-card:hover .card-title {
    color: #0d6efd;
}

.link-card:hover .card-text small,
.link-card:hover .card-footer small,
.link-card:hover .text-muted,
.link-card:hover .text-secondary,
.link-card:hover .small {
    color: #495057 !important;
}

.link-stats {
    font-size: 0.9rem;
    color: #6c757d;
    transition: color 0.2s;
}

/* QR code */
.qr-code-container {
    text-align: center;
    margin: 20px 0;
}

.qr-code-container img {
    max-width: 100%;
    height: auto;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 10px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.qr-code-container img:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
}

/* QR Code Modal */
#qrCodeModal .modal-content {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#qrCodeModal .modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#qrCodeModal .modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

#qrCodeModal .qr-code-container {
    margin: 0 auto;
    max-width: 250px;
}

/* Dashboard stats */
.stats-card {
    text-align: center;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 5px;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2);
}

.stats-card .stats-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #0d6efd;
    transition: transform 0.2s;
}

.stats-card:hover .stats-icon {
    transform: scale(1.1);
}

.stats-card .stats-number {
    font-size: 2rem;
    font-weight: bold;
    transition: color 0.2s;
}

.stats-card:hover .stats-number {
    color: #0d6efd;
}

.stats-card .stats-label {
    font-size: 1rem;
    color: #6c757d;
    transition: color 0.2s;
}

/* Admin dashboard */
.admin-sidebar {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-sidebar .nav-link {
    color: #212529;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.admin-sidebar .nav-link:hover {
    background-color: #e9ecef;
    color: #0d6efd;
    border-left: 3px solid #0d6efd;
    padding-left: calc(0.5rem + 3px);
}

.admin-sidebar .nav-link.active {
    background-color: #0d6efd;
    color: white;
    border-left: 3px solid #0a58ca;
}

/* Admin menu */
.list-group-item {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
    border-left: 3px solid #0d6efd;
    padding-left: calc(1.25rem + 3px);
}

.list-group-item.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
    border-left: 3px solid #0a58ca;
}

.list-group-item i {
    transition: transform 0.2s;
}

.list-group-item:hover i {
    transform: translateX(3px);
    color: #0d6efd;
}

/* Footer */
footer {
    background-color: #f8f9fa;
    padding: 20px 0;
    margin-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

footer p {
    margin-bottom: 0;
    transition: color 0.2s;
}

footer a {
    color: #0d6efd;
    transition: all 0.2s;
    text-decoration: none;
}

footer a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

/* Alert styles */
.alert-success {
    background-color: #3a506b;
    border-color: #5b7da9;
    color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.alert-success h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.alert-success .input-group {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.alert-success .input-group .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.alert-success .btn-outline-primary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
}

.alert-success .btn-outline-primary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Buttons */
.btn {
    transition: all 0.2s ease;
}

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

/* Action buttons in user dashboard and links page */
.card-body .btn-group .btn,
.card-footer .btn-group .btn {
    margin: 0 2px;
    transition: all 0.2s;
}

.card-body .btn-group .btn:hover,
.card-footer .btn-group .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Tables */
.table-hover tbody tr {
    transition: background-color 0.2s, color 0.2s;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

/* Table links */
.table a {
    color: #0d6efd;
    transition: color 0.2s;
}

.table a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

/* Table actions */
.table .btn-sm {
    transition: transform 0.2s, background-color 0.2s;
}

.table .btn-sm:hover {
    transform: scale(1.1);
}

/* Edit icon specifically */
.fa-edit, .fa-pencil-alt {
    color: #ffffff;
}

/* Action buttons and icons */
.btn-primary i,
.btn-info i,
.btn-success i,
.btn-danger i,
.btn-warning i {
    color: #ffffff;
}

/* Card effects */
.card {
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Chart styles */
.chart-container {
    background-color: #ffffff;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.chart-container:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .admin-sidebar {
        margin-bottom: 20px;
    }
}
