/* Material Design Custom Styles */

/* Material Design Card Styles */
.mdc-card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

.mdc-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15), 0 8px 16px rgba(0,0,0,0.15);
}

/* Material Design Button Styles */
.mdc-button {
    border-radius: 4px;
    text-transform: none;
    font-weight: 500;
    padding: 10px 24px;
}

.mdc-button--raised {
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.mdc-button--raised:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Material Design Typography */
.mdc-typography--headline1 {
    font-size: 6rem;
    font-weight: 300;
    letter-spacing: -0.01562em;
}

.mdc-typography--headline2 {
    font-size: 3.75rem;
    font-weight: 300;
    letter-spacing: -0.00833em;
}

.mdc-typography--headline3 {
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: 0;
}

.mdc-typography--headline4 {
    font-size: 2.125rem;
    font-weight: 400;
    letter-spacing: 0.00735em;
}

.mdc-typography--headline5 {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0;
}

.mdc-typography--headline6 {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.0075em;
}

/* Material Design Elevation */
.mdc-elevation--z0 {
    box-shadow: none;
}

.mdc-elevation--z1 {
    box-shadow: 0 2px 1px -1px rgba(0,0,0,0.2), 0 1px 1px 0 rgba(0,0,0,0.14), 0 1px 3px 0 rgba(0,0,0,0.12);
}

.mdc-elevation--z2 {
    box-shadow: 0 3px 1px -2px rgba(0,0,0,0.2), 0 2px 2px 0 rgba(0,0,0,0.14), 0 1px 5px 0 rgba(0,0,0,0.12);
}

.mdc-elevation--z3 {
    box-shadow: 0 3px 3px -2px rgba(0,0,0,0.2), 0 3px 4px 0 rgba(0,0,0,0.14), 0 1px 8px 0 rgba(0,0,0,0.12);
}

.mdc-elevation--z4 {
    box-shadow: 0 2px 4px -1px rgba(0,0,0,0.2), 0 4px 5px 0 rgba(0,0,0,0.14), 0 1px 10px 0 rgba(0,0,0,0.12);
}

.mdc-elevation--z5 {
    box-shadow: 0 3px 5px -1px rgba(0,0,0,0.2), 0 5px 8px 0 rgba(0,0,0,0.14), 0 1px 14px 0 rgba(0,0,0,0.12);
}

/* Material Design Ripple Effect */
.mdc-ripple-surface {
    position: relative;
    overflow: hidden;
}

/* Apps Grid Layout */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding: 24px 0;
}

.app-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15), 0 8px 16px rgba(0,0,0,0.15);
}

.app-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.app-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    margin-right: 16px;
    font-weight: bold;
}

.app-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.app-versions {
    margin-top: 16px;
}

.version-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    margin-bottom: 8px;
    background: #f5f5f5;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.version-item:hover {
    background: #e0e0e0;
}

.version-item .version-info {
    display: flex;
    align-items: center;
    flex: 1;
    flex-wrap: wrap;
}

.version-badge {
    background: #1976d2;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-right: 12px;
    white-space: nowrap;
}

.version-files {
    display: flex;
    gap: 8px;
}

.file-badge {
    background: #4caf50;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Material Design Colors */
.mdc-theme--primary {
    color: #1976d2;
}

.mdc-theme--primary-bg {
    background-color: #1976d2;
}

.mdc-theme--secondary {
    color: #dc004e;
}

.mdc-theme--secondary-bg {
    background-color: #dc004e;
}

/* Logo Styling for Material Design Theme */
.navbar-brand {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin-right: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    flex-shrink: 0;
    border-radius: 8px;
}

.navbar-brand img {
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
    filter: brightness(1.05);
}

.navbar-brand:hover {
    background: rgba(255, 255, 255, 0.05);
}

.navbar-brand:hover img {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.16), 0 2px 4px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.12);
    filter: brightness(1.1);
}

/* For white/light navbar */
.navbar-white-color .navbar-brand img,
.white-active-color .navbar-brand img {
    background: rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    filter: brightness(0.98);
}

.navbar-white-color .navbar-brand:hover,
.white-active-color .navbar-brand:hover {
    background: rgba(0, 0, 0, 0.02);
}

.navbar-white-color .navbar-brand:hover img,
.white-active-color .navbar-brand:hover img {
    background: rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.14), 0 2px 4px rgba(0, 0, 0, 0.1);
    filter: brightness(1);
}

/* Logo in responsive menu */
.main-responsive-menu .logo {
    padding: 8px 0;
}

.main-responsive-menu .logo img {
    max-height: 45px;
    border-radius: 6px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .apps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .app-card {
        padding: 16px;
    }
    
    .navbar-brand img {
        max-height: 40px;
        padding: 4px;
    }
    
    .main-responsive-menu .logo img {
        max-height: 38px;
    }
}

