/**
 * Multi-Cloud Pass - Main Stylesheet
 */

/* ==================== Variables ==================== */
:root {
    --aws-orange: #FF9900;
    --aws-dark: #232F3E;
    --aws-light: #F2F3F3;

    --color-migration: #3498db;
    --color-webapp: #2ecc71;
    --color-automation: #e67e22;
    --color-pipeline: #9b59b6;
    --color-serverless: #1abc9c;

    --sidebar-width: 280px;
}

/* ==================== Base Styles ==================== */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

/* ==================== Navigation ==================== */
.navbar {
    z-index: 1030;
}

.navbar-brand {
    font-weight: 600;
}

.navbar-brand i {
    color: var(--aws-orange);
}

/* ==================== Main Content ==================== */
.main-content {
    margin-top: 56px;
    flex: 1;
    padding-bottom: 20px;
}

/* ==================== Cards ==================== */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

/* Stats Cards */
.card.bg-primary,
.card.bg-success,
.card.bg-info,
.card.bg-warning {
    border: none;
}

.card.bg-primary {
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
}

.card.bg-success {
    background: linear-gradient(135deg, #2ecc71, #27ae60) !important;
}

.card.bg-info {
    background: linear-gradient(135deg, #00cec9, #0984e3) !important;
}

.card.bg-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22) !important;
}

/* ==================== Tables ==================== */
.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: #666;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.table td {
    vertical-align: middle;
}

/* ==================== Badges ==================== */
.badge {
    font-weight: 500;
    padding: 0.4em 0.8em;
}

/* ==================== Buttons ==================== */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--aws-orange);
    border-color: var(--aws-orange);
}

.btn-primary:hover {
    background-color: #e68a00;
    border-color: #e68a00;
}

.btn-outline-primary {
    color: var(--aws-orange);
    border-color: var(--aws-orange);
}

.btn-outline-primary:hover {
    background-color: var(--aws-orange);
    border-color: var(--aws-orange);
}

/* ==================== Progress Bars ==================== */
.progress {
    border-radius: 10px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 10px;
}

/* ==================== Lists ==================== */
.list-group-item {
    border-left: none;
    border-right: none;
}

.list-group-item:first-child {
    border-top: none;
}

.list-group-item-action:hover {
    background-color: #f8f9fa;
}

/* ==================== Tabs ==================== */
.nav-tabs .nav-link {
    color: #666;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.75rem 1rem;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    color: var(--aws-orange);
}

.nav-tabs .nav-link.active {
    color: var(--aws-orange);
    border-bottom-color: var(--aws-orange);
    background: none;
}

/* ==================== Timeline ==================== */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #dee2e6;
}

.timeline-item {
    position: relative;
}

.timeline-marker {
    position: absolute;
    left: -26px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.timeline-content {
    padding-bottom: 10px;
}

/* ==================== Footer ==================== */
.footer {
    margin-top: auto;
}

.footer a {
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ==================== Code/Monospace ==================== */
code {
    background-color: #f1f2f6;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}

.font-monospace {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* ==================== Breadcrumb ==================== */
.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 0.5rem;
}

.breadcrumb-item a {
    color: var(--aws-orange);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* ==================== Tooltips ==================== */
.tooltip-inner {
    max-width: 300px;
    text-align: left;
}

/* ==================== Scrollbar ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    .main-content {
        margin-top: 56px;
    }

    .card-body {
        padding: 1rem;
    }
}

/* ==================== Animations ==================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

/* ==================== Loading State ==================== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ==================== Empty State ==================== */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #999;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}
